Hi Axel,

On 09/04/2013 11:48 AM, Axel Beckert wrote:
> Package: needrestart
> Severity: normal
> 
> Hi Patrick and Thomas,
> 
> I would have expected that once needrestart restarted a service it would
> not have to restart again unless libraries or other dependencies it uses
> have changed.
> 
> But it seems to _always_ want to restart openssh-server and dbus (which
> is quite annoying):

this is triggered due forked & detached childs of the primary sshd
process. If there are any users logged in via ssh they get there
individual detached sshd process. Restarting the sshd master process by
openssh-server's rc script does not touch any detached sshd.

Upstream has been fixed by a heuristic: needrestart checks if it can
retrieve the pidfile used by the rc script. If the pidfile has been
retrieved its content is compared to the process in question to be
kicked. This prevents detached sshds to trigger needrestart for such
processes.

Although this is not an overall solution it should be mostly less annoying.


HTH,
Thomas


> # needrestart -r a ; echo '***' ; needrestart -r a
> Services needed to be restarted:
> 
> dbus:
>  - Restart dbus? [Yn] y
> Stopping system message bus: dbus.
> Starting system message bus: dbus.
> 
> openssh-server:
>  - Restart ssh? [Yn] y
> Restarting OpenBSD Secure Shell server: sshd.
> ***
> Services needed to be restarted:
> 
> openssh-server:
>  - Restart ssh? [Yn] y
> Restarting OpenBSD Secure Shell server: sshd.
> 
> dbus:
>  - Restart dbus? [Yn] y
> Stopping system message bus: dbus.
> Starting system message bus: dbus.
> #
> 
> See http://bugs.debian.org/721809 for why I had to press "y" despite the
> "-r a" option.
> 
> -- System Information:
> Debian Release: Sid
> Shell: /bin/sh linked to /bin/dash
> 


-- 

    ::  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

Reply via email to