[systemd-devel] Synchronization Between Services at Shutdown

Lennart Poettering lennart at poettering.net
Tue Apr 7 09:41:58 PDT 2015


On Fri, 03.04.15 19:37, Andrei Borzenkov (arvidjaar at gmail.com) wrote:

> В Fri, 3 Apr 2015 14:04:10 +0200
> Lennart Poettering <lennart at poettering.net> пишет:
> 
> > On Thu, 02.04.15 16:28, Martin Pitt (martin.pitt at ubuntu.com) wrote:
> > 
> > > Lennart Poettering [2015-04-02 13:03 +0200]:
> > > > Yeah, and rightfully so. I mean, a service really should be able to
> > > > shutdown if dbus is dead. In fact, it should be able to shutdown in
> > > > pretty much any situation...
> > > 
> > > They do, but that's irrelevant here. The problem is that dbus.service
> > > shuts down very early as nothing prevents it from that. All
> > > dependencies just refer to dbus.socket, but TBH socket (re-)activation
> > > totally doesn't work for dbus.
> > 
> > systemd will not reactivate services when shutting down, we refuse to
> > go in circles...
> > 
> 
> Could you elaborate? systemd will obviously start services when
> starting shutdown.target. How does systemd differentiate between
> services that can and can not be started?

Socket units for which a stop job is queued will suppress
activations until the stop job is cancelled (ot it is stopped).

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list