[systemd-devel] Allow stop jobs to be killed during shutdown

Andrey Borzenkov arvidjaar at gmail.com
Mon Jan 27 04:13:01 PST 2014


В Mon, 27 Jan 2014 07:43:55 +0100
Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> пишет:

> Looks like we need a setting like SendKillSignalTo=main-pid|all|control-pid.

Quoting from this thread

> > > I don't think we want any processes to survive the exit of
> > > user at .service, 

So why would we need this setting? Final kill should go to all remaining
processes; what is scenario where it would *not*?

So may be we simply need to make final kill independent of KillMode.

I'm fine with having separate setting for SIGTERM and SIGKILL, just do
not see use case for the latter.

Having KillMode=process and ensuring that final kill really attempts to
kill everything would be enough to fix this problem. Except in this
case KillMode probably has to be renamed to something else, like
SendTermSignalTo= ...



More information about the systemd-devel mailing list