Hi Andreas,
could you please provide the output of `needrestart -r`? Please
provider another checkrestart output if you did restart the system in
the meantime.
TIA,
Thomas
On Thu, Jan 14, 2016 at 11:56:38AM +0100, Andreas Schmidt wrote:
> Package: needrestart
> Version: 2.5-1
> Severity: important
>
> Dear Maintainer,
>
> lately I found that needrestart apparently does not find a lot of services
> that
> should be restarted, while versions prior to needrestart 2.3-1 ( I'm not sure
> of the exact version number since the last working version isn't available in
> the repository any more) worked.
>
> Have a look at this transcript:
>
> *****
> root@debian:/home/pc# dpkg -l | grep needrestart
> ii needrestart 2.5-1
> all check which daemons need to be restarted after library upgrades
> ii needrestart-session 0.3-2
> all check for processes need to be restarted in user sessions
> root@debian:/home/pc# TERM= needrestart
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> Scanning processes...
> Scanning candidates...
> Pending kernel upgrade
> ----------------------
>
> Newer kernel available
>
> The currently running kernel version is 4.2.0-1-amd64 which is not the
> expected
> kernel version 4.3.0-1-amd64.
>
> Restarting the system to load the new kernel will not be handled
> automatically,
> so you should consider rebooting.
>
> Daemons using outdated libraries
> --------------------------------
>
>
> 1. dbus.service
>
> (Enter the items you want to select, separated by spaces.)
>
> Which services should be restarted?
>
>
> No containers need to be restarted.
> User sessions:
> pc on session services is running obsolete systemd[2012]
> root@debian:/home/pc# checkrestart
> lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
> Output information may be incomplete.
> Found 23 processes using old versions of upgraded files
> (21 distinct programs)
> (18 distinct packages)
>
> Of these, 16 seem to contain systemd service definitions or init scripts which
> can be used to restart them.
> The following packages seem to have definitions that could be used
> to restart their services:
> dnscrypt-proxy:
> 800 /usr/sbin/dnscrypt-proxy
> packagekit:
> 21320 /usr/lib/packagekit/packagekitd
> openssh-server:
> 799 /usr/sbin/sshd
> ntp:
> 910 /usr/sbin/ntpd
> dbus:
> 723 /usr/bin/dbus-daemon
> libvirt-daemon:
> 18628 /usr/sbin/virtlogd
> 18701 /usr/sbin/libvirtd
> fetchmail:
> 1741 /usr/bin/fetchmail
> udisks2:
> 2227 /usr/lib/udisks2/udisksd
> wpasupplicant:
> 14650 /sbin/wpa_supplicant
> cron:
> 753 /usr/sbin/cron
> tor:
> 1285 /usr/bin/tor
> accountsservice:
> 742 /usr/lib/accountsservice/accounts-daemon
> policykit-1:
> 1215 /usr/lib/policykit-1/polkitd
> at:
> 738 /usr/sbin/atd
> upower:
> 2499 /usr/lib/upower/upowerd
> avahi-daemon:
> 881 /usr/sbin/avahi-daemon
> 734 /usr/sbin/avahi-daemon
>
> These are the systemd services:
> systemctl restart packagekit.service
> systemctl restart packagekit-offline-update.service
> systemctl restart udisks2.service
> systemctl restart wpa_supplicant.service
> systemctl restart accounts-daemon.service
> systemctl restart polkitd.service
> systemctl restart upower.service
>
> These are the initd scripts:
> service dnscrypt-proxy restart
> service ssh restart
> service ntp restart
> service dbus restart
> service virtlogd restart
> service libvirtd restart
> service fetchmail restart
> service cron restart
> service tor restart
> service atd restart
> service avahi-daemon restart
>
> These processes (2) do not seem to have an associated init script to restart
> them:
> system-tools-backends:
> 3545 /usr/sbin/system-tools-backends
> 3662 /usr/share/system-tools-
> backends-2.0/scripts/SystemToolsBackends.pl
> iceweasel:
> 20942 /usr/lib/iceweasel/iceweasel
> root@debian:/home/pc#
> *****
>
> dbus is the one package I would not expect in the needrestart-list, since
> restarting it will kill the running user session. But it is only listed as
> restartable service, not restarted automatically, so I guess listing it is OK.
> On the other hand, services like ssh, ntp, fetchmail, cron etc. are harmless
> to
> the running user session and should be found by needrestart. The way it is,
> I'm
> fairing better with this oneliner that restarts every service found by
> checkrestart except dbus and the desktopmanager:
>
> *****
> root@debian:/home/pc# checkrestart | egrep "^(systemctl|service).*restart" |
> egrep -v "(dbus|.*dm)" | while read i; do $i; done
> *****
>
> Would it be possible to let needrestart find the other services again?
>
> Best regards
>
> Andreas
>
>
>
> -- Package-specific info:
> needrestart output:
> Your outdated processes:
> my-weather-indi[2245]
>
> checkrestart output:
>
>
> -- System Information:
> Debian Release: stretch/sid
> APT prefers unstable
> APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages needrestart depends on:
> ii dpkg 1.18.4
> ii libmodule-find-perl 0.13-1
> ii libmodule-scandeps-perl 1.20-1
> ii libproc-processtable-perl 0.53-1+b1
> ii libsort-naturally-perl 1.03-1
> ii libterm-readkey-perl 2.33-1+b1
> ii perl 5.22.1-4
> ii xz-utils 5.1.1alpha+20120614-2.1
>
> needrestart recommends no packages.
>
> Versions of packages needrestart suggests:
> ii libnotify-bin 0.7.6-2
> ii needrestart-session 0.3-2
>
> -- no debconf information
>
--
:: WWW: https://fiasko-nw.net/~thomas/ ::
::: Jabber: xmpp:[email protected] :::
:: flickr: https://www.flickr.com/photos/laugufe/ ::