On Sat, 2014-06-07 at 12:29 +0200, Thomas Liske wrote:
> Hi Frederik,
> 
> On 06/06/2014 01:24 PM, Frederik Himpe wrote:
> > On two systems which run Debian Wheezy and systemd, needrestart wants to
> > restart lots of services every time it is run. When I run needrestart and
> > let is restart all proposed services, then these services are correctly
> > restarted according to syslog. Then if I run needrestart again immediately
> > after te first run, needrestart proposes the same services to be restarted
> > once more. However, after needrestart has exited, the output on the console
> > reads: "No services should be restarted..."
> >
> > This does not happen on my systems running Wheezy with sysvinit: when I run
> > needrestart a second time, it will immediately exit with the above message.
> 
> I'm unable to reproduce this behavior. Needrestart seems to working fine 
> on my Jessie+systemd testbed. Could you please provide the output of 
> needrestart -v of one of the affected systems?

Here is the output of two subsequent needrestart -v runs. The first time
I choose to restart all proposed services, the second time it proposes
the same services.

root@artipc10:~# needrestart -v
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] detected systemd
Scanning processes
[main] #1 uses obsolete /lib/systemd/systemd
[main] #1 is not a child
[main] #681 uses obsolete binary /usr/bin/dbus-daemon
[main] #1653 uses obsolete /usr/sbin/php5-fpm
[main] #1653 is a child of #21140
[main] #3920 uses obsolete /usr/sbin/icinga
[main] #3920 is not a child
[main] #4073 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4073 is not a child
[main] #4667 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4667 is a child of #4073
[main] #4668 uses obsolete /usr/lib/passenger/agents/PassengerWatchdog
[main] #4668 is a child of #4073
[main] #4671 uses obsolete /usr/lib/passenger/agents/PassengerHelperAgent
[main] #4671 is a child of #4668
[main] #4678 uses obsolete /usr/lib/passenger/agents/PassengerLoggingAgent
[main] #4678 is a child of #4668
[main] #4686 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4686 is a child of #4073
[main] #4687 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4687 is a child of #4073
[main] #4688 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4688 is a child of #4073
[main] #4729 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #4729 is a child of #4073
[main] #12510 uses obsolete /usr/bin/ruby2.1
[main] #12510 is not a child
[main] #17095 uses obsolete /lib/x86_64-linux-gnu/security/pam_env.so
[main] #17095 is a child of #21018
[main] #17097 uses obsolete /lib/x86_64-linux-gnu/security/pam_env.so
[main] #17097 is a child of #17095
[main] #17098 uses obsolete /bin/bash
[main] #17098 is a child of #17097
[main] #17181 uses obsolete /bin/su
[main] #17181 is a child of #17098
[main] #17182 uses obsolete /bin/bash
[main] #17182 is a child of #17181
[main] #17196 uses obsolete /usr/bin/perl
[main] #17196 is a child of #17182
[main] #19155 uses obsolete /lib/x86_64-linux-gnu/libattr.so.1.1.0
[main] #19155 is not a child
[main] #19342 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #19342 is not a child
[main] #19370 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #19370 is a child of #19342
[main] #19371 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #19371 is a child of #19342
[main] #20998 uses obsolete binary /sbin/agetty
[main] #20998 is not a child
[main] #21018 uses non-existing /lib/x86_64-linux-gnu/libnss_files-2.18.so
[main] #21018 is not a child
[main] #21025 uses obsolete /lib/systemd/systemd-journald
[main] #21025 is not a child
[main] #21032 uses obsolete /usr/bin/php5
[main] #21032 is not a child
[main] #21057 uses obsolete /usr/sbin/acpid
[main] #21057 is not a child
[main] #21060 uses obsolete /lib/systemd/systemd-udevd
[main] #21060 is not a child
[main] #21100 uses obsolete /lib/systemd/systemd-logind
[main] #21100 is not a child
[main] #21101 uses obsolete /usr/sbin/rsyslogd
[main] #21101 is not a child
[main] #21103 uses obsolete /usr/sbin/irqbalance
[main] #21103 is not a child
[main] #21108 uses obsolete /usr/sbin/bacula-fd
[main] #21108 is not a child
[main] #21140 uses obsolete /usr/sbin/php5-fpm
[main] #21140 is not a child
[main] #21157 uses obsolete /usr/sbin/php5-fpm
[main] #21157 is a child of #21140
[main] #21158 uses obsolete /usr/sbin/php5-fpm
[main] #21158 is a child of #21140
[main] #21159 uses obsolete /usr/sbin/php5-fpm
[main] #21159 is a child of #21140
[main] #21160 uses obsolete /usr/sbin/php5-fpm
[main] #21160 is a child of #21140
[main] #21161 uses obsolete /usr/sbin/php5-fpm
[main] #21161 is a child of #21140
[main] #21162 uses obsolete /usr/sbin/php5-fpm
[main] #21162 is a child of #21140
[main] #21163 uses obsolete /usr/sbin/php5-fpm
[main] #21163 is a child of #21140
[main] #21164 uses obsolete /usr/sbin/php5-fpm
[main] #21164 is a child of #21140
[main] #21165 uses obsolete /usr/sbin/php5-fpm
[main] #21165 is a child of #21140
[main] #21166 uses obsolete /usr/sbin/php5-fpm
[main] #21166 is a child of #21140
[main] #21203 uses obsolete binary /usr/bin/python2.7
[main] #21203 is not a child
[main] #21804 uses obsolete /usr/bin/ruby2.1
[main] #21804 is not a child
[main] #22354 uses obsolete /usr/sbin/chronyd
[main] #22354 is not a child
[main] #22726 uses obsolete /usr/sbin/php5-fpm
[main] #22726 is a child of #21140
[main] #26730 uses obsolete /usr/sbin/php5-fpm
[main] #26730 is a child of #21140
[main] #27105 uses obsolete /usr/sbin/cron
[main] #27105 is not a child
[main] #30222 uses obsolete binary /usr/bin/ssh-agent
[main] #30222 is not a child
[main] #31624 uses obsolete /usr/bin/lua5.1
[main] #31624 is not a child
[main] #31848 uses obsolete /lib/x86_64-linux-gnu/libattr.so.1.1.0
[main] #31848 is not a child
[main] #31849 uses obsolete /usr/lib/ipsec/plugins/libstrongswan-updown.so
[main] #31849 is a child of #31848
Scanning candidates
[main] #1 exe => /lib/systemd/systemd
Failed to issue method call: No unit for PID 1 is loaded.
[main] #1 running /etc/needrestart/hook.d/10-dpkg
[main] #1 package: systemd
[main] #1 running /etc/needrestart/hook.d/20-rpm
[main] #1 running /etc/needrestart/hook.d/30-pacman
[main] #1 running /etc/needrestart/hook.d/90-none
[main] #3920 exe => /usr/sbin/icinga
[main] #3920 is icinga.service
[main] #4073 exe => /usr/sbin/apache2
[main] #4073 is apache2.service
[main] #4668 exe => /usr/lib/passenger/agents/PassengerWatchdog
[main] #4668 is apache2.service
[main] #12510 exe => /usr/bin/ruby2.1
[Core] #12510 is a NeedRestart::Interp::Ruby
[Ruby] #12510: could not get a source file, skipping
[Core] #12510 source is UNKNOWN
[main] #12510 is apache2.service
[main] #17095 exe => /usr/sbin/sshd
Failed to issue method call: No unit for PID 17095 is loaded.
[main] #17095 running /etc/needrestart/hook.d/10-dpkg
[main] #17095 package: openssh-server
[main] #17095 running /etc/needrestart/hook.d/20-rpm
[main] #17095 running /etc/needrestart/hook.d/30-pacman
[main] #17095 running /etc/needrestart/hook.d/90-none
[main] #17097 exe => /usr/sbin/sshd
Failed to issue method call: No unit for PID 17097 is loaded.
[main] #17097 running /etc/needrestart/hook.d/10-dpkg
[main] #17097 package: openssh-server
[main] #17097 running /etc/needrestart/hook.d/20-rpm
[main] #17097 running /etc/needrestart/hook.d/30-pacman
[main] #17097 running /etc/needrestart/hook.d/90-none
[main] #17098 exe => /bin/bash
Failed to issue method call: No unit for PID 17098 is loaded.
[main] #17098 running /etc/needrestart/hook.d/10-dpkg
[main] #17098 package: bash
[main] #17098 running /etc/needrestart/hook.d/20-rpm
[main] #17098 running /etc/needrestart/hook.d/30-pacman
[main] #17098 running /etc/needrestart/hook.d/90-none
[main] #17181 exe => /bin/su
Failed to issue method call: No unit for PID 17181 is loaded.
[main] #17181 running /etc/needrestart/hook.d/10-dpkg
[main] #17181 package: login
[main] #17181 running /etc/needrestart/hook.d/20-rpm
[main] #17181 running /etc/needrestart/hook.d/30-pacman
[main] #17181 running /etc/needrestart/hook.d/90-none
[main] #17182 exe => /bin/bash
Failed to issue method call: No unit for PID 17182 is loaded.
[main] #17182 running /etc/needrestart/hook.d/10-dpkg
[main] #17182 package: bash
[main] #17182 running /etc/needrestart/hook.d/20-rpm
[main] #17182 running /etc/needrestart/hook.d/30-pacman
[main] #17182 running /etc/needrestart/hook.d/90-none
[main] #19155 exe => /usr/sbin/vsftpd
[main] #19155 is vsftpd.service
[main] #19342 exe => /usr/lib/postfix/master
[main] #19342 is postfix.service
[main] #20998 exe => /sbin/agetty
[main] #20998 is getty@tty1.service
[main] #21018 exe => /usr/sbin/sshd
[main] #21018 is ssh.service
[main] #21025 exe => /lib/systemd/systemd-journald
[main] #21025 is systemd-journald.service
[main] #21032 exe => /usr/bin/php5
[main] #21032 is tt-rss.service
[main] #21057 exe => /usr/sbin/acpid
[main] #21057 is acpid.service
[main] #21060 exe => /lib/systemd/systemd-udevd
[main] #21060 is systemd-udevd.service
[main] #21100 exe => /lib/systemd/systemd-logind
[main] #21100 is systemd-logind.service
[main] #21101 exe => /usr/sbin/rsyslogd
[main] #21101 is rsyslog.service
[main] #21103 exe => /usr/sbin/irqbalance
[main] #21103 is irqbalance.service
[main] #21108 exe => /usr/sbin/bacula-fd
[main] #21108 is bacula-fd.service
[main] #21140 exe => /usr/sbin/php5-fpm
[main] #21140 is php5-fpm.service
[main] #21203 exe => /usr/bin/python2.7
[Core] #21203 is a NeedRestart::Interp::Python
[Core] #21203 source is /usr/bin/fail2ban-server
[main] #21203 is fail2ban.service
[main] #21804 exe => /usr/bin/ruby2.1
[Core] #21804 is a NeedRestart::Interp::Ruby
[Core] #21804 source is /usr/bin/puppet
[main] #21804 is puppet.service
[main] #22354 exe => /usr/sbin/chronyd
[main] #22354 is puppet.service
[main] #27105 exe => /usr/sbin/cron
[main] #27105 is cron.service
[main] #30222 exe => /usr/bin/ssh-agent
Failed to issue method call: No unit for PID 30222 is loaded.
[main] #30222 running /etc/needrestart/hook.d/10-dpkg
[main] #30222 package: openssh-client
[main] #30222 running /etc/needrestart/hook.d/20-rpm
[main] #30222 running /etc/needrestart/hook.d/30-pacman
[main] #30222 running /etc/needrestart/hook.d/90-none
[main] #31624 exe => /usr/bin/lua5.1
[main] #31624 is prosody.service
[main] #31848 exe => /usr/lib/ipsec/starter
[main] #31848 is ipsec.service
[Kernel] Scanning kernel images...
[Kernel] Running kernel version: 3.12-1-amd64 => Linux version 3.12-1-amd64 
(debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-10) ) #1 SMP 
Debian 3.12.6-2 (2013-12-29)
[Kernel] /boot/vmlinuz-3.12-1-amd64 => 3.12-1-amd64 
(debian-ker...@lists.debian.org) #1 SMP Debian 3.12.9-1 (2014-02-01)
[Kernel] /boot/vmlinuz-3.14-1-amd64 => 3.14-1-amd64 
(debian-ker...@lists.debian.org) #1 SMP Debian 3.14.4-1 (2014-05-13)
[Kernel] Expected kernel version: 3.14-1-amd64
Pending kernel upgrade!

Running kernel version:
  3.12-1-amd64

Diagnostics:
  Running not the expected kernel version 3.14-1-amd64.

You should consider to reboot this machine to activate the pending kernel 
upgrade. You need to reboot MANUALLY! [Return]

Services to be restarted:
Restart acpid.service? [Ynas] y
Restart apache2.service? [Ynas] y
Restart bacula-fd.service? [Ynas] y
Restart cron.service? [Ynas] y
Restart fail2ban.service? [Ynas] y
Restart getty@tty1.service? [Ynas] y
Restart icinga.service? [Ynas] y
Restart ipsec.service? [Ynas] y
Restart irqbalance.service? [Ynas] y
Restart php5-fpm.service? [Ynas] y
Restart postfix.service? [Ynas] y
Restart prosody.service? [Ynas] y
Restart puppet.service? [Ynas] y
Restart rsyslog.service? [Ynas] y
Restart ssh.service? [Ynas] y
Restart systemd-journald.service? [Ynas] y
Restart systemd-logind.service? [Ynas] y
Restart systemd-udevd.service? [Ynas] y
Restart tt-rss.service? [Ynas] y
Restart vsftpd.service? [Ynas] y
Restarting services using systemd...
root@artipc10:~# needrestart -v
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] detected systemd
Scanning processes
[main] #1 uses obsolete /lib/systemd/systemd
[main] #1 is not a child
[main] #681 uses obsolete binary /usr/bin/dbus-daemon
[main] #17095 uses obsolete /lib/x86_64-linux-gnu/security/pam_env.so
[main] #17095 is not a child
[main] #17097 uses obsolete /lib/x86_64-linux-gnu/security/pam_env.so
[main] #17097 is a child of #17095
[main] #17098 uses obsolete /bin/bash
[main] #17098 is a child of #17097
[main] #17181 uses obsolete /bin/su
[main] #17181 is a child of #17098
[main] #17182 uses obsolete /bin/bash
[main] #17182 is a child of #17181
[main] #17315 uses obsolete /usr/sbin/cron
[main] #17315 is not a child
[main] #17341 uses obsolete /sbin/agetty
[main] #17341 is not a child
[main] #17375 uses obsolete /usr/bin/php5
[main] #17375 is not a child
[main] #17379 uses obsolete /lib/x86_64-linux-gnu/libattr.so.1.1.0
[main] #17379 is not a child
[main] #17401 uses obsolete /lib/systemd/systemd-logind
[main] #17401 is not a child
[main] #17415 uses obsolete /lib/systemd/systemd-journald
[main] #17415 is not a child
[main] #17446 uses obsolete /usr/sbin/rsyslogd
[main] #17446 is not a child
[main] #17451 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17451 is not a child
[main] #17478 uses obsolete /usr/sbin/icinga
[main] #17478 is not a child
[main] #17488 uses obsolete /usr/sbin/acpid
[main] #17488 is not a child
[main] #17514 uses obsolete /usr/sbin/irqbalance
[main] #17514 is not a child
[main] #17528 uses obsolete /usr/sbin/bacula-fd
[main] #17528 is not a child
[main] #17555 uses obsolete /lib/systemd/systemd-udevd
[main] #17555 is not a child
[main] #17601 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17601 is not a child
[main] #17602 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17602 is a child of #17601
[main] #17603 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17603 is a child of #17601
[main] #17605 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17605 is a child of #17601
[main] #17606 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17606 is a child of #17601
[main] #17608 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17608 is a child of #17601
[main] #17609 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17609 is a child of #17601
[main] #17634 uses obsolete /usr/sbin/php5-fpm
[main] #17634 is not a child
[main] #17636 uses obsolete /usr/sbin/php5-fpm
[main] #17636 is a child of #17634
[main] #17637 uses obsolete /usr/sbin/php5-fpm
[main] #17637 is a child of #17634
[main] #17638 uses obsolete /usr/sbin/php5-fpm
[main] #17638 is a child of #17634
[main] #17639 uses obsolete /usr/sbin/php5-fpm
[main] #17639 is a child of #17634
[main] #17640 uses obsolete /usr/sbin/php5-fpm
[main] #17640 is a child of #17634
[main] #17641 uses obsolete /usr/sbin/php5-fpm
[main] #17641 is a child of #17634
[main] #17642 uses obsolete /usr/sbin/php5-fpm
[main] #17642 is a child of #17634
[main] #17643 uses obsolete /usr/sbin/php5-fpm
[main] #17643 is a child of #17634
[main] #17644 uses obsolete /usr/sbin/php5-fpm
[main] #17644 is a child of #17634
[main] #17645 uses obsolete /usr/sbin/php5-fpm
[main] #17645 is a child of #17634
[main] #17683 uses obsolete /usr/lib/passenger/agents/PassengerWatchdog
[main] #17683 is not a child
[main] #17684 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #17684 is not a child
[main] #17685 uses obsolete /lib/x86_64-linux-gnu/libnss_files-2.19.so
[main] #17685 is a child of #17684
[main] #17687 uses obsolete /usr/lib/passenger/agents/PassengerWatchdog
[main] #17687 is a child of #17684
[main] #17690 uses obsolete /usr/lib/passenger/agents/PassengerHelperAgent
[main] #17690 is a child of #17687
[main] #17696 uses obsolete /usr/lib/passenger/agents/PassengerLoggingAgent
[main] #17696 is a child of #17687
[main] #17707 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #17707 is a child of #17684
[main] #17708 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #17708 is a child of #17684
[main] #17710 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #17710 is a child of #17684
[main] #17734 uses obsolete /usr/lib/x86_64-linux-gnu/apr-util-1/apr_ldap-1.so
[main] #17734 is a child of #17684
[main] #18195 uses obsolete /usr/bin/lua5.1
[main] #18195 is not a child
[main] #18227 uses obsolete /usr/bin/python2.7
[main] #18227 is not a child
[main] #18253 uses obsolete /usr/bin/ruby2.1
[main] #18253 is not a child
[main] #18257 uses obsolete /usr/bin/ruby2.1
[main] #18257 is a child of #18253
[main] #18267 uses obsolete /usr/bin/ruby2.1
[main] #18267 is a child of #17690
[main] #18293 uses obsolete /usr/bin/ruby2.1
[main] #18293 is a child of #18267
[main] #18464 uses obsolete /usr/bin/perl
[main] #18464 is a child of #17182
[main] #30222 uses obsolete binary /usr/bin/ssh-agent
[main] #30222 is not a child
[main] #31848 uses obsolete /lib/x86_64-linux-gnu/libattr.so.1.1.0
[main] #31848 is not a child
[main] #31849 uses obsolete /usr/lib/ipsec/plugins/libstrongswan-updown.so
[main] #31849 is a child of #31848
Scanning candidates
[main] #1 exe => /lib/systemd/systemd
Failed to issue method call: No unit for PID 1 is loaded.
[main] #1 running /etc/needrestart/hook.d/10-dpkg
[main] #1 package: systemd
[main] #1 running /etc/needrestart/hook.d/20-rpm
[main] #1 running /etc/needrestart/hook.d/30-pacman
[main] #1 running /etc/needrestart/hook.d/90-none
[main] #17095 exe => /usr/sbin/sshd
Failed to issue method call: No unit for PID 17095 is loaded.
[main] #17095 running /etc/needrestart/hook.d/10-dpkg
[main] #17095 package: openssh-server
[main] #17095 running /etc/needrestart/hook.d/20-rpm
[main] #17095 running /etc/needrestart/hook.d/30-pacman
[main] #17095 running /etc/needrestart/hook.d/90-none
[main] #17097 exe => /usr/sbin/sshd
Failed to issue method call: No unit for PID 17097 is loaded.
[main] #17097 running /etc/needrestart/hook.d/10-dpkg
[main] #17097 package: openssh-server
[main] #17097 running /etc/needrestart/hook.d/20-rpm
[main] #17097 running /etc/needrestart/hook.d/30-pacman
[main] #17097 running /etc/needrestart/hook.d/90-none
[main] #17098 exe => /bin/bash
Failed to issue method call: No unit for PID 17098 is loaded.
[main] #17098 running /etc/needrestart/hook.d/10-dpkg
[main] #17098 package: bash
[main] #17098 running /etc/needrestart/hook.d/20-rpm
[main] #17098 running /etc/needrestart/hook.d/30-pacman
[main] #17098 running /etc/needrestart/hook.d/90-none
[main] #17181 exe => /bin/su
Failed to issue method call: No unit for PID 17181 is loaded.
[main] #17181 running /etc/needrestart/hook.d/10-dpkg
[main] #17181 package: login
[main] #17181 running /etc/needrestart/hook.d/20-rpm
[main] #17181 running /etc/needrestart/hook.d/30-pacman
[main] #17181 running /etc/needrestart/hook.d/90-none
[main] #17182 exe => /bin/bash
Failed to issue method call: No unit for PID 17182 is loaded.
[main] #17182 running /etc/needrestart/hook.d/10-dpkg
[main] #17182 package: bash
[main] #17182 running /etc/needrestart/hook.d/20-rpm
[main] #17182 running /etc/needrestart/hook.d/30-pacman
[main] #17182 running /etc/needrestart/hook.d/90-none
[main] #17315 exe => /usr/sbin/cron
[main] #17315 is cron.service
[main] #17341 exe => /sbin/agetty
[main] #17341 is getty@tty1.service
[main] #17375 exe => /usr/bin/php5
[main] #17375 is tt-rss.service
[main] #17379 exe => /usr/sbin/vsftpd
[main] #17379 is vsftpd.service
[main] #17401 exe => /lib/systemd/systemd-logind
[main] #17401 is systemd-logind.service
[main] #17415 exe => /lib/systemd/systemd-journald
[main] #17415 is systemd-journald.service
[main] #17446 exe => /usr/sbin/rsyslogd
[main] #17446 is rsyslog.service
[main] #17451 exe => /usr/sbin/sshd
[main] #17451 is ssh.service
[main] #17478 exe => /usr/sbin/icinga
[main] #17478 is icinga.service
[main] #17488 exe => /usr/sbin/acpid
[main] #17488 is acpid.service
[main] #17514 exe => /usr/sbin/irqbalance
[main] #17514 is irqbalance.service
[main] #17528 exe => /usr/sbin/bacula-fd
[main] #17528 is bacula-fd.service
[main] #17555 exe => /lib/systemd/systemd-udevd
[main] #17555 is systemd-udevd.service
[main] #17601 exe => /usr/lib/postfix/master
[main] #17601 is postfix.service
[main] #17634 exe => /usr/sbin/php5-fpm
[main] #17634 is php5-fpm.service
[main] #17683 exe => /usr/lib/passenger/agents/PassengerWatchdog
Failed to issue method call: No unit for PID 17683 is loaded.
[main] #17683 running /etc/needrestart/hook.d/10-dpkg
[main] #17683 package: ruby-passenger
[main] #17683 running /etc/needrestart/hook.d/20-rpm
[main] #17683 running /etc/needrestart/hook.d/30-pacman
[main] #17683 running /etc/needrestart/hook.d/90-none
[main] #17684 exe => /usr/sbin/apache2
[main] #17684 is apache2.service
[main] #17687 exe => /usr/lib/passenger/agents/PassengerWatchdog
[main] #17687 is apache2.service
[main] #17690 exe => /usr/lib/passenger/agents/PassengerHelperAgent
[main] #17690 is apache2.service
[main] #18195 exe => /usr/bin/lua5.1
[main] #18195 is prosody.service
[main] #18227 exe => /usr/bin/python2.7
[Core] #18227 is a NeedRestart::Interp::Python
[Core] #18227 source is /usr/bin/fail2ban-server
[main] #18227 is fail2ban.service
[main] #18253 exe => /usr/bin/ruby2.1
[Core] #18253 is a NeedRestart::Interp::Ruby
[Core] #18253 source is /usr/bin/puppet
[main] #18253 is puppet.service
[main] #18267 exe => /usr/bin/ruby2.1
[Core] #18267 is a NeedRestart::Interp::Ruby
[Ruby] #18267: source file '/usr/share/puppet/rack/puppetmasterd' not found, 
skipping
[Ruby] #18267:  reduced ARGV:       
[Core] #18267 source is UNKNOWN
[main] #18267 is apache2.service
[main] #30222 exe => /usr/bin/ssh-agent
Failed to issue method call: No unit for PID 30222 is loaded.
[main] #30222 running /etc/needrestart/hook.d/10-dpkg
[main] #30222 package: openssh-client
[main] #30222 running /etc/needrestart/hook.d/20-rpm
[main] #30222 running /etc/needrestart/hook.d/30-pacman
[main] #30222 running /etc/needrestart/hook.d/90-none
[main] #31848 exe => /usr/lib/ipsec/starter
[main] #31848 is ipsec.service
[Kernel] Scanning kernel images...
[Kernel] Running kernel version: 3.12-1-amd64 => Linux version 3.12-1-amd64 
(debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-10) ) #1 SMP 
Debian 3.12.6-2 (2013-12-29)
[Kernel] /boot/vmlinuz-3.12-1-amd64 => 3.12-1-amd64 
(debian-ker...@lists.debian.org) #1 SMP Debian 3.12.9-1 (2014-02-01)
[Kernel] /boot/vmlinuz-3.14-1-amd64 => 3.14-1-amd64 
(debian-ker...@lists.debian.org) #1 SMP Debian 3.14.4-1 (2014-05-13)
[Kernel] Expected kernel version: 3.14-1-amd64
Pending kernel upgrade!

Running kernel version:
  3.12-1-amd64

Diagnostics:
  Running not the expected kernel version 3.14-1-amd64.

You should consider to reboot this machine to activate the pending kernel 
upgrade. You need to reboot MANUALLY! [Return]

Services to be restarted:
Restart acpid.service? [Ynas] n
Restart apache2.service? [Ynas] n
Restart bacula-fd.service? [Ynas] n
Restart cron.service? [Ynas] n
Restart fail2ban.service? [Ynas] n
Restart getty@tty1.service? [Ynas] n
Restart icinga.service? [Ynas] n
Restart ipsec.service? [Ynas] n
Restart irqbalance.service? [Ynas] n
Restart php5-fpm.service? [Ynas] n
Restart postfix.service? [Ynas] n
Restart prosody.service? [Ynas] n
Restart puppet.service? [Ynas] n
Restart rsyslog.service? [Ynas] n
Restart ssh.service? [Ynas] n
Restart systemd-journald.service? [Ynas] n
Restart systemd-logind.service? [Ynas] n
Restart systemd-udevd.service? [Ynas] n
Restart tt-rss.service? [Ynas] n
Restart vsftpd.service? [Ynas] n
root@artipc10:~#

When I look at my logs, I see services were restarted as requested the first 
time:

Jun 10 13:38:01 artipc10 systemd[1]: Stopping ACPI event daemon...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: Apache2 web server...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: Start Bacula File Daemon at 
boot time...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping Regular background program 
processing daemon...
Jun 10 13:38:01 artipc10 systemd[1]: Starting Regular background program 
processing daemon...
Jun 10 13:38:01 artipc10 systemd[1]: Started Regular background program 
processing daemon.
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: Start/stop fail2ban...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping Getty on tty1...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: icinga host/service/network 
monitoring and management system...
Jun 10 13:38:01 artipc10 systemd[1]: Starting Getty on tty1...
Jun 10 13:38:01 artipc10 systemd[1]: Started Getty on tty1.
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: Strongswan IPsec services...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: daemon to balance interrupts 
for SMP systems...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping The PHP FastCGI Process Manager...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: start and stop the Postfix 
Mail Transport Agent...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping LSB: Prosody XMPP Server...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping Puppet agent...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping System Logging Service...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping OpenBSD Secure Shell server...
Jun 10 13:38:01 artipc10 systemd[1]: Stopping Journal Service...
Jun 10 13:38:01 artipc10 systemd[1]: Started LSB: Strongswan IPsec services.
Jun 10 13:38:01 artipc10 systemd[1]: Started Trigger Flushing of Journal to 
Persistent Storage.
Jun 10 13:38:01 artipc10 systemd[1]: systemd-journald.service: main process 
exited, code=killed, status=10/USR1
Jun 10 13:38:01 artipc10 systemd[1]: Starting LSB: icinga host/service/network 
monitoring and management system...
Jun 10 13:38:01 artipc10 systemd[1]: Started Login Service.
Jun 10 13:38:01 artipc10 systemd[1]: Started Trigger Flushing of Journal to 
Persistent Storage.
Jun 10 13:38:01 artipc10 systemd[1]: Started System Logging Service.
Jun 10 13:38:01 artipc10 systemd[1]: Starting LSB: start and stop the Postfix 
Mail Transport Agent...
Jun 10 13:38:01 artipc10 systemd[1]: Starting Puppet agent...
Jun 10 13:38:01 artipc10 systemd[1]: Started LSB: icinga host/service/network 
monitoring and management system.
Jun 10 13:38:01 artipc10 systemd[1]: Starting ACPI event daemon...
Jun 10 13:38:01 artipc10 systemd[1]: Started ACPI event daemon.
Jun 10 13:38:01 artipc10 systemd[1]: Starting LSB: Start Bacula File Daemon at 
boot time...
Jun 10 13:38:01 artipc10 systemd[1]: Started LSB: daemon to balance interrupts 
for SMP systems.
Jun 10 13:38:01 artipc10 systemd[1]: Started LSB: Start Bacula File Daemon at 
boot time.
Jun 10 13:38:02 artipc10 systemd[1]: Starting udev Kernel Device Manager...
Jun 10 13:38:02 artipc10 systemd[1]: Started udev Kernel Device Manager.
Jun 10 13:38:02 artipc10 systemd[1]: Started LSB: start and stop the Postfix 
Mail Transport Agent.
Jun 10 13:38:02 artipc10 systemd[1]: Starting The PHP FastCGI Process Manager...
Jun 10 13:38:02 artipc10 systemd[1]: Starting LSB: Prosody XMPP Server...
Jun 10 13:38:02 artipc10 systemd[1]: Starting LSB: Start/stop fail2ban...
Jun 10 13:38:02 artipc10 systemd[1]: Started The PHP FastCGI Process Manager.
Jun 10 13:38:02 artipc10 systemd[1]: Starting LSB: Apache2 web server...
Jun 10 13:38:03 artipc10 systemd[1]: Started LSB: Prosody XMPP Server.
Jun 10 13:38:03 artipc10 systemd[1]: Started LSB: Start/stop fail2ban.
Jun 10 13:38:03 artipc10 systemd[1]: Started Puppet agent.
Jun 10 13:38:04 artipc10 systemd[1]: Started LSB: Apache2 web server.



> PS: The affected systems are GNU/Linux? There is a known issue in 
> needrestart 0.9 on GNU/kFreeBSD which results in trying to restart all 
> services any time needrestart is run...

Yes, I'm running GNU/Linux and noticed this problem on different
systems.


-- 
Frederik Himpe <fhi...@vub.ac.be>
Vrije Universiteit Brussel


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to