diff options
author | Henri Chain <henri.chain@enioka.com> | 2021-02-24 16:13:21 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-31 10:26:07 +0200 |
commit | cb0e818f7cc2499d81ef143e5acaa00c6e684711 (patch) | |
tree | 0a1276b1571c2653ecd0c3e1232a910aa14862f7 /man/systemd.service.xml | |
parent | Merge pull request #18777 from yuwata/network-set-ifname-to-engines (diff) | |
download | systemd-cb0e818f7cc2499d81ef143e5acaa00c6e684711.tar.xz systemd-cb0e818f7cc2499d81ef143e5acaa00c6e684711.zip |
Introduce ExitType
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r-- | man/systemd.service.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 350bc5f8e5..50d1a1d85d 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -256,6 +256,31 @@ </varlistentry> <varlistentry> + <term><varname>ExitType=</varname></term> + + <listitem> + <para>Configures the process exit type for this service unit. One of <option>main</option> or + <option>cgroup</option>:</para> + + <itemizedlist> + <listitem><para>If set to <option>main</option> (the default), the service manager + will consider the unit stopped when the main process, which is determined according to the `Type`, exits. + </para></listitem> + + <listitem><para>The <option>cgroup</option> exit type is meant for applications whose forking model is not + known ahead of time and which might not have a specific main process. The service will stay running as long + as at least one process in the cgroup is running. The exit status of the service is that of the last + process in the cgroup to exit.</para></listitem> + </itemizedlist> + + <para>It is generally recommended to use <varname>ExitType=</varname><option>main</option> when a service has + a known forking model and a main process can reliably be determined. <varname>ExitType=</varname> + <option>cgroup</option> is well suited for transient or automatically generated services, such as graphical + applications inside of a desktop environment.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><varname>RemainAfterExit=</varname></term> <listitem><para>Takes a boolean value that specifies whether |