What you need to restart after APT upgrades

Published on Author righterLeave a comment

If you update with apt, it will restart the updated packag automatically.
But it could be that there are other services which are using the updated libs.
So how do you know which ones you should restart als?
You could restart the whole server but that’s not cool. But hey there is a tool:


apt-get install debian-goodies

Before the restarts:

root@mail:~# checkrestart
Found 6 processes using old versions of upgraded files
(6 distinct programs)
(6 distinct packages)

Of these, 5 seem to contain init scripts which can be used to restart them:
The following packages seem to have init scripts that could be used
to restart them:
mysql-community-server:
1480 /usr/sbin/mysqld
ntp:
1869 /usr/sbin/ntpd
pdns-server:
18116 /usr/sbin/pdns_server
fail2ban:
1449 /usr/bin/fail2ban-server
snmpd:
1066 /usr/sbin/snmpd

These are the init scripts:
service mysql restart
service ntp restart
service pdns restart
service fail2ban restart
service snmpd restart

These processes do not seem to have an associated init script to restart them:
perl-base:
19021 /usr/bin/perl

And then after the service restarts:

root@mail:~# checkrestart
Found 2 processes using old versions of upgraded files
(2 distinct programs)
(2 distinct packages)

Of these, 1 seem to contain init scripts which can be used to restart them:
The following packages seem to have init scripts that could be used
to restart them:
mysql-community-server:
28542 /usr/sbin/mysqld

These are the init scripts:
service mysql restart

These processes do not seem to have an associated init script to restart them:
perl-base:
19021 /usr/bin/perl

Leave a Reply

Your email address will not be published. Required fields are marked *