[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#751636: openssh-server: ssh sessions are not cleanly termined on shutdown/restart with systemd



Hi,

On Sat, Dec 13, 2014 at 07:04:30PM +0100, Christoph Anton Mitterer wrote:
> On Sat, 2014-12-13 at 15:01 +0100, Marc Haber wrote: 
> > I would like to have a method to
> > kill all ssh sessions with the exception of my own ones, or the single
> > session that I happen to type the command restarting sshd in.
> Since there is no definition of "which are yours" (the ones logged in to
> your current user? sessions started by your current user?) this is going
> to be difficult, apart from the fact, that one would need a way to find
> out such information.
> 
> Anyway. This kind of process management is not what the init-system
> should be there for.

I am aware of that. I was just dreaming of a perfect solution, very
well knowing that I won't get it RSN.

> > That would be a pretty severe change from the behavior we used to have
> > for fifteen years. I also guess it would be used as an argument
> > against systemd as a whole.
> First of all,... I just put that up for open discussion... i.e. the
> questions:
> When we'd start from scratch with the OS, and would ask ourselves "what
> should happen when I type 'stop service XYZ'"... would that be to only
> stop the listener, or to stop anything related to that service (i.e.
> also any sessions, like ongoing httpd connections or that like).

Yes, but GNU/Linux is not a "grüne wiese" approach, it is migrating
millions of existing systems.

Even a classic Unix leaves many things to be hated, but it's just what
we are used to, and which is not easily changed.

> OTOH, people aren't stupid and when you tell them why a current
> behaviour changes and that it's for a better design of the system,..
> they likely can adapt to it.

Locking a shell for a two-digit number of seconds in a ordinare usage
situation is something I would not want to adapt to even if the
underlying system was perfect.

> And in general, one cannot stop progress just because there are some
> backwards-minded people who never want to have ill-designed things to
> change.

I fail to see why it is "progress" to save five seconds of shutdown
time for the machine while the same change wastes half a minute or
more for the human.

Greetings
Marc, well aware that the last sentence will be misinterpreted as
systemd hatred again, which it is not


-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600420


Reply to: