Bug#838355: needrestart: Automatic restart mode doesn't work
Hi Thomas, On 16-11-03 22:42:47, Thomas Liske wrote: > "ge...@riseup.net"writes: > > needrestart tells me that it restarted a service, however, this > > doesn't seem to be true: > > absolutely! The codepath for list and automatic mode was missing the > composite command execution for systemd. The upstream fix will be part > of needrestart 2.10. Thanks for the quick fix, much appreciated! Given that it's already in unstable, I assume that it will go in j-bp as well soon, right? If so, any ETA for this? Something like ~ four weeks? > Thanks for reporting! Thanks for your work! All the best, Georg signature.asc Description: Digital signature
Bug#838355: needrestart: Automatic restart mode doesn't work
tags 838355 upstream fixed-upstream severity 838355 important thanks Hi Georg, "ge...@riseup.net"writes: > needrestart tells me that it restarted a service, however, this doesn't > seem to be true: absolutely! The codepath for list and automatic mode was missing the composite command execution for systemd. The upstream fix will be part of needrestart 2.10. Thanks for reporting! HTH, Thomas > # Date && systemctl status ganeti.service | grep Active && needrestart -v -m > a -r a && date && systemctl status ganeti.service | grep Active > Tue Sep 20 09:19:10 UTC 2016 >Active: active (running) since Tue 2016-09-20 09:07:09 UTC; 12min ago > [main] eval /etc/needrestart/needrestart.conf > [main] running in root-mode > [Core] Using UI 'NeedRestart::UI::stdio'... > [main] detected systemd > [Core] #1209 is a NeedRestart::Interp::Java > [Core] #1376 is a NeedRestart::Interp::Python > [Core] #1575 is a NeedRestart::Interp::Ruby > [main] #3023 uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so > [main] #3023 is not a child > [main] #3141 uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so > [main] #3141 is not a child > [main] # uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so > [main] # is not a child > [Core] #14391 is a NeedRestart::Interp::Python > [Core] #14442 is a NeedRestart::Interp::Python > [main] #3023 exe => /usr/bin/qemu-system-x86_64 > [main] #3023 is ganeti.service > [main] #3141 exe => /usr/bin/qemu-system-x86_64 > [main] #3141 is ganeti.service > [main] # exe => /usr/bin/qemu-system-x86_64 > [main] # is ganeti.service > [Kernel] Linux: kernel release 4.6.0-0.bpo.1-amd64, kernel version #1 SMP > Debian 4.6.4-1~bpo8+1 (2016-08-11) > Failed to load NeedRestart::Kernel::kFreeBSD: [Kernel/kFreeBSD] Not running > on GNU/kFreeBSD! > [Kernel/Linux] /boot/vmlinuz-4.6.0-0.bpo.1-amd64 => 4.6.0-0.bpo.1-amd64 > (debian-ker...@lists.debian.org) #1 SMP Debian 4.6.4-1~bpo8+1 (2016-08-11) > [4.6.0-0.bpo.1-amd64]* > [Kernel/Linux] /boot/vmlinuz-4.5.0-0.bpo.2-amd64 => 4.5.0-0.bpo.2-amd64 > (debian-ker...@lists.debian.org) #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) > [4.5.0-0.bpo.2-amd64] > [Kernel/Linux] Expected linux version: 4.6.0-0.bpo.1-amd64 > Running kernel seems to be up-to-date. > Restarting services... > systemctl restart ganeti.service > No containers need to be restarted. > No user sessions are running outdated binaries. > Tue Sep 20 09:19:10 UTC 2016 >Active: active (running) since Tue 2016-09-20 09:07:09 UTC; 12min ago > > -- System Information: > Debian Release: 8.5 > APT prefers stable > APT policy: (900, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/12 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.17.27 > ii gettext-base 0.19.3-2 > ii libintl-perl 1.23-1+deb8u1 > ii libmodule-find-perl0.12-1 > ii libmodule-scandeps-perl1.16-1 > ii libproc-processtable-perl 0.51-1 > ii libsort-naturally-perl 1.03-1 > ii libterm-readkey-perl 2.32-1+b1 > ii perl 5.20.2-3+deb8u6 > ii xz-utils 5.1.1alpha+20120614-2+b3 > > needrestart recommends no packages. > > Versions of packages needrestart suggests: > pn needrestart-session | libnotify-bin > > -- no debconf information > > If there is anything I can do / provide to debug this further, please > let me know. > > Thanks in advance and for your work! > All the best, > Georg -- supp...@ibh.de Tel. +49 351 477 77 30 www.ibh.de Fax +49 351 477 77 39 --- Dipl.-Ing. Thomas Liske Teamleiter DataCenter Services IBH IT-Service GmbH Amtsgericht Dresden Heilbronner Str. 20 HRB 13626 01189 DresdenGF: Prof. Dr. T. Horn, S. Horn Germany VAT DE182302907 --- Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV --- professioneller IT-Service - kompetent und zuverlässig ---
Bug#838355: needrestart: Automatic restart mode doesn't work
Package: needrestart Version: 2.8-1~bpo8+1 Severity: normal Hi, needrestart tells me that it restarted a service, however, this doesn't seem to be true: # date && systemctl status ganeti.service | grep Active && needrestart -v -m a -r a && date && systemctl status ganeti.service | grep Active Tue Sep 20 09:19:10 UTC 2016 Active: active (running) since Tue 2016-09-20 09:07:09 UTC; 12min ago [main] eval /etc/needrestart/needrestart.conf [main] running in root-mode [Core] Using UI 'NeedRestart::UI::stdio'... [main] detected systemd [Core] #1209 is a NeedRestart::Interp::Java [Core] #1376 is a NeedRestart::Interp::Python [Core] #1575 is a NeedRestart::Interp::Ruby [main] #3023 uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so [main] #3023 is not a child [main] #3141 uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so [main] #3141 is not a child [main] # uses deleted /usr/lib/x86_64-linux-gnu/libxenguest-4.4.so [main] # is not a child [Core] #14391 is a NeedRestart::Interp::Python [Core] #14442 is a NeedRestart::Interp::Python [main] #3023 exe => /usr/bin/qemu-system-x86_64 [main] #3023 is ganeti.service [main] #3141 exe => /usr/bin/qemu-system-x86_64 [main] #3141 is ganeti.service [main] # exe => /usr/bin/qemu-system-x86_64 [main] # is ganeti.service [Kernel] Linux: kernel release 4.6.0-0.bpo.1-amd64, kernel version #1 SMP Debian 4.6.4-1~bpo8+1 (2016-08-11) Failed to load NeedRestart::Kernel::kFreeBSD: [Kernel/kFreeBSD] Not running on GNU/kFreeBSD! [Kernel/Linux] /boot/vmlinuz-4.6.0-0.bpo.1-amd64 => 4.6.0-0.bpo.1-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.6.4-1~bpo8+1 (2016-08-11) [4.6.0-0.bpo.1-amd64]* [Kernel/Linux] /boot/vmlinuz-4.5.0-0.bpo.2-amd64 => 4.5.0-0.bpo.2-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) [4.5.0-0.bpo.2-amd64] [Kernel/Linux] Expected linux version: 4.6.0-0.bpo.1-amd64 Running kernel seems to be up-to-date. Restarting services... systemctl restart ganeti.service No containers need to be restarted. No user sessions are running outdated binaries. Tue Sep 20 09:19:10 UTC 2016 Active: active (running) since Tue 2016-09-20 09:07:09 UTC; 12min ago -- System Information: Debian Release: 8.5 APT prefers stable APT policy: (900, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/12 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.17.27 ii gettext-base 0.19.3-2 ii libintl-perl 1.23-1+deb8u1 ii libmodule-find-perl0.12-1 ii libmodule-scandeps-perl1.16-1 ii libproc-processtable-perl 0.51-1 ii libsort-naturally-perl 1.03-1 ii libterm-readkey-perl 2.32-1+b1 ii perl 5.20.2-3+deb8u6 ii xz-utils 5.1.1alpha+20120614-2+b3 needrestart recommends no packages. Versions of packages needrestart suggests: pn needrestart-session | libnotify-bin -- no debconf information If there is anything I can do / provide to debug this further, please let me know. Thanks in advance and for your work! All the best, Georg signature.asc Description: Digital signature