systemd (Was Re: tmpfs for strategic directories)

Mike Fedyk mfedyk at
Tue Jun 1 08:56:14 UTC 2010

On Mon, May 31, 2010 at 5:32 PM, Lennart Poettering
<mzerqung at> wrote:
> On Wed, 26.05.10 09:01, Jeff Spaleta (jspaleta at wrote:
>> On Wed, May 26, 2010 at 5:55 AM, Lennart Poettering
>> <mzerqung at> wrote:
>> > Well, that depends on configuration.
>> > In systemd you can choose individually for each unit whether you want to
>> > allow it to continue run processes on shut down, whether you want the
>> > main process killed, the process group to be killed or the cgroup to be
>> > killed.
>> Do you have a service file example yet in systemd git that can be used
>> to get an understanding of the various configuration options which
>> determine what gets killed and what doesn't?
> Nope, not really.
> But it is as easy as this: when we stop a service the "KillMode=" option
> controls whether and how any processes remaining after the "ExecStop="
> command (if there is such a command, and if there are any processes left)
> is killed.
> KillMode=control-group → the entire cgroup is shot down
> KillMode=process-group → only the process group of the process we forked is shot down
> KillMode=process → only the process we forked is shot down
> KillMode=none → nothing is shot down

And what is the default?

More information about the devel mailing list