Hi Andreas, sadly, the documentation in ADP 0.7 does not expose the meaning of NEEDRESTART-KSTA values. Since ADP was developed for apt-dater the meaning of NEEDRESTART-STA can be lookuped in apt-dater's sources[1]:
#define ADP_STATUS_NRK_UNKNOWN 0 #define ADP_STATUS_NRK_NOUPGR 1 #define ADP_STATUS_NRK_ABIUPGR 2 #define ADP_STATUS_NRK_VERUPGR 3 [1] https://github.com/DE-IBH/apt-dater/blob/master/include/adproto.h#L106-L109 The value '1' for NEEDRESTART-KSTA does indicate that there is no upgrade pending while '0' would indicate a failure during kernel detection. HTH, Thomas Andreas Papst <andreas.pa...@univie.ac.at> writes: > Package: needrestart > Version: 2.8-1~bpo8+1 > Severity: normal > > Dear Maintainer, > > *** Reporter, please consider answering these questions, where appropriate *** > > * What led up to the situation? > > $ dpkg -l | grep linux-image > ii linux-image-3.16.0-4-amd64 3.16.36-1+deb8u1 > amd64 Linux 3.16 for 64-bit PCs > ii linux-image-amd64 3.16+63 > amd64 Linux for 64-bit PCs (meta-package) > $ uname -v > #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) > > shows, that the latest installed kernel is running, but > > `needrestart -b' reports > NEEDRESTART-KSTA: 1 > > indicating that a refresh is needed according to > https://github.com/DE-IBH/apt-dater-host/blob/master/doc/ADP-0.7 > > with `needrestart' without `-b' anything is fine. > > > * What exactly did you do (or not do) that was effective (or > ineffective)? > > needrestart -b > > > * What was the outcome of this action? > > NEEDRESTART-KSTA: 1 > > > * What outcome did you expect instead? > > NEEDRESTART-KSTA: 0 > or none > > > *** End of the template - remove these template lines *** > > > -- Package-specific info: > needrestart output: > > root# needrestart -c /etc/needrestart/needrestart.conf -b > NEEDRESTART-VER: 2.7 > NEEDRESTART-KCUR: 3.16.0-4-amd64 > NEEDRESTART-KEXP: 3.16.0-4-amd64 > NEEDRESTART-KSTA: 1 > > root# needrestart -c /etc/needrestart/needrestart.conf > Scanning processes... > > Scanning linux images... > > Running kernel seems to be up-to-date. > No services need to be restarted. > No containers need to be restarted. > No user sessions are running outdated binaries. > > checkrestart output: > > # checkrestart > Found 0 processes using old versions of upgraded files > > > -- System Information: > Debian Release: 8.5 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.16.0-4-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.17.27 > ii gettext-base 0.19.3-2 > ii libintl-perl 1.23-1+deb8u1 > ii libmodule-find-perl 0.12-1 > ii libmodule-scandeps-perl 1.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 <none> > > -- no debconf information > -- :: WWW: https://fiasko-nw.net/~thomas/ :: ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: :: flickr: https://www.flickr.com/photos/laugufe/ ::