[systemd-devel] services stopping order during shutdown

Andrei Borzenkov arvidjaar at gmail.com
Wed Dec 8 05:52:23 UTC 2021


On 08.12.2021 08:35, Prashantkumar dhotre wrote:
> Hi,
> Is there a batching of service stops by systemd during shutdown.
> In journal logs, I see a batch of 40 odd 'Stopping' messages and then the
> next batch is seen after few seconds (4-6 seconds)
> Is this by design ?
> I am looking for a faster way to shutdown. Is there any config that can
> speed up service stops during shutdown (like  avoid batching )?
> Thanks
> Prashant
> 

Units are stopped in reverse order of dependency. If unit B has After: A, then
unit B is (requested to be) stopped first, systemd waits until stopping completes
and then proceeds with stopping unit A. Unrelated units are stopped concurrently.


More information about the systemd-devel mailing list