summaryrefslogtreecommitdiff
path: root/man/systemd.service.xml
diff options
context:
space:
mode:
authorHenri Chain <henri.chain@enioka.com>2021-02-24 16:13:21 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-31 10:26:07 +0200
commitcb0e818f7cc2499d81ef143e5acaa00c6e684711 (patch)
tree0a1276b1571c2653ecd0c3e1232a910aa14862f7 /man/systemd.service.xml
parent82a335db83b8eab1c25c729e9398e8ae1611bd33 (diff)
downloadsystemd-cb0e818f7cc2499d81ef143e5acaa00c6e684711.tar.gz
Introduce ExitType
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r--man/systemd.service.xml25
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