Bug#1001320: needrestart misdetects socket activated ssh and restarts service instead of socket

Colin Watson <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <YcuUGokzFWb/[email protected]>
On Sat, Dec 25, 2021 at 08:18:11AM +0100, Marc Haber wrote:
> On Fri, Dec 24, 2021 at 11:04:20PM +0000, Colin Watson wrote:
> > diff --git a/debian/README.Debian b/debian/README.Debian
> > index dbe6c2958..0851e38e3 100644
> > --- a/debian/README.Debian
> > +++ b/debian/README.Debian
> > @@ -193,9 +193,12 @@ you can run:
> >  
> >  To make this permanent:
> >  
> > -  systemctl disable ssh.service
> > +  systemctl mask ssh.service
> >    systemctl enable ssh.socket
> 
> I think the service needs to be stopped (and disable?) before masking
> it.

Stopping is already in the previous paragraph just outside the context
of the patch I posted, but I've adjusted the linking sentence to make it
clearer that you need to do both.

> I would also mention that there might be cases of logins no longer
> possible regarding library updates and needrestart. This is a serious
> situation.

Thanks, I've tweaked the parenthesis a bit more with that in mind.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.