[systemd-devel] Allow stop jobs to be killed during shutdown
Tom Gundersen
teg at jklm.no
Mon Jan 27 04:17:48 PST 2014
On Mon, Jan 27, 2014 at 1:13 PM, Andrey Borzenkov <arvidjaar at gmail.com> wrote:
> В 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= ...
I think we could avoid all this be just not using async signals at all
unless something is broken and we need to go on a killing-spree.
-t
More information about the systemd-devel
mailing list