Hi Paul, I'm aware that needrestart laks detecting any process hierarchy. This breaks the service detection (it depends if you're running systemd and might let to restart more or less services than needed)... should become resolved in 0.7.
HTH, Thomas On 04/09/2014 04:50 AM, Paul Wise wrote: > Package: needrestart > Version: 0.6-1 > Severity: important > > The default blacklist includes the gdm3 binary but that isn't enough for > needrestart to not suggest restarting gdm3 (which kills user sessions). > I would suggest adding service blacklists for sysvinit and systemd so > that if the architecture of services changes those services are still > not presented as needing restarts. Marking this as important since users > might get their sessions killed and lose data as a result of this. > > pabs@chianamo ~ $ grep -B1 gdm /etc/needrestart/needrestart.conf > # ignore display managers > q(^/usr/sbin/gdm3$), > pabs@chianamo ~ $ sudo needrestart -v -r l > Using UI 'NeedRestart::UI::stdio'... > detected systemd > Scanning processes.................#2333 uses obsolete > /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1 > #2333 is gdm3.service > .#2339 is gdm3.service > .#2658 uses obsolete /lib/x86_64-linux-gnu/libdbus-1.so.3.8.3 > Failed to issue method call: No unit for PID 2658 is loaded. > #2658 running /etc/needrestart/hook.d/10-dpkg > #2658 package: gdm3 > ........ > Services to be restarted: > systemctl restart gdm3.service > pabs@chianamo ~ $ ps auxf | grep 2333 > root 2333 0.0 0.0 293156 2456 ? Sl Mar31 0:00 \_ > /usr/lib/gdm3/gdm-simple-slave --display-id > /org/gnome/DisplayManager/Displays/_0 > pabs@chianamo ~ $ ps auxf | grep 2339 > root 2339 1.4 0.7 332448 61204 tty7 Ss+ Mar31 202:07 \_ > /usr/bin/Xorg :0 -background none -verbose -auth > /var/run/gdm3/auth-for-Debian-gdm-Bew2yY/database -nolisten tcp vt7 > pabs@chianamo ~ $ ps auxf | grep 2658 > root 2658 0.0 0.1 404352 9384 ? Sl Mar31 0:05 \_ > gdm-session-worker [pam/gdm3] > pabs@chianamo ~ $ ps auxf | grep -A1 gdm > root 2329 0.0 0.0 217024 2020 ? Sl Mar31 0:00 > /usr/sbin/gdm3 > root 2333 0.0 0.0 293156 2456 ? Sl Mar31 0:00 \_ > /usr/lib/gdm3/gdm-simple-slave --display-id > /org/gnome/DisplayManager/Displays/_0 > root 2339 1.4 0.7 332284 61204 tty7 Ss+ Mar31 202:18 \_ > /usr/bin/Xorg :0 -background none -verbose -auth > /var/run/gdm3/auth-for-Debian-gdm-Bew2yY/database -nolisten tcp vt7 > root 2658 0.0 0.1 404352 9384 ? Sl Mar31 0:05 \_ > gdm-session-worker [pam/gdm3] > pabs 2733 0.0 0.0 603744 7060 ? Ssl Mar31 0:11 \_ > gnome-session --session gnome-classic > > -- System Information: > Debian Release: jessie/sid > APT prefers testing > APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages needrestart depends on: > ii libmodule-find-perl 0.12-1 > ii perl 5.18.2-2+b1 > -- :: WWW: http://fiasko-nw.net/~thomas/ :: ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: :: flickr: http://www.flickr.com/photos/laugufe/ :: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org