Bug#721810: needrestart: Always wants to restart openssh-server and dbus

2013-09-09 Thread Thomas Liske
Hi,

On 09/09/2013 09:42 AM, Jim Barber wrote:
> Regarding the restart of dbus.
> 
> I made the mistake of answering Y to a restart of dbus on a desktop system.
> This immediately killed X (and so all my X applications) and gdm
> outright and dropped me back to a login: prompt on the text based
> virtual console.
> Further research shows that it seems to be a bad idea to restart the
> dbus process.
>
> I'm not sure if there are ways to determine if it is safe to restart
> dbus or not,

checking on Wheezy using KDM+KDE works just fine... but Sid and/or GDM
might behave different.


> I've restarted it in the past on headless systems without encountering
> any issues, but perhaps I was just lucky?
> Maybe dbus should be added to a list of processes that needrestart
> shouldn't restart?

Absolutely, I'm still pondering howto implement this in detail (ignore
any GUI touching processes like dbus, display managers etc. or just warn
the user somehow intensely) but it should be improved somehow.


Thanks,
Thomas

-- 

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



Bug#721810: needrestart: Always wants to restart openssh-server and dbus

2013-09-09 Thread Jim Barber

Regarding the restart of dbus.

I made the mistake of answering Y to a restart of dbus on a desktop system.
This immediately killed X (and so all my X applications) and gdm outright and 
dropped me back to a login: prompt on the text based virtual console.
Further research shows that it seems to be a bad idea to restart the dbus 
process.

I'm not sure if there are ways to determine if it is safe to restart dbus or 
not,
I've restarted it in the past on headless systems without encountering any 
issues, but perhaps I was just lucky?
Maybe dbus should be added to a list of processes that needrestart shouldn't 
restart?

Regards,

--
Jim Barber


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



Bug#721810: needrestart: Always wants to restart openssh-server and dbus

2013-09-04 Thread Thomas Liske
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



Bug#721810: needrestart: Always wants to restart openssh-server and dbus

2013-09-04 Thread Axel Beckert
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):

# 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


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