man: document that services need at least one of ExecStart= or ExecStop=

Fixes: #4521
This commit is contained in:
Lennart Poettering 2016-12-20 21:30:05 +01:00
parent 33fc1800d6
commit e4b45b32e5

View File

@ -284,7 +284,9 @@
providing multiple command lines in the same directive, or alternatively, this directive may be specified more
than once with the same effect. If the empty string is assigned to this option, the list of commands to start
is reset, prior assignments of this option will have no effect. If no <varname>ExecStart=</varname> is
specified, then the service must have <varname>RemainAfterExit=yes</varname> set.</para>
specified, then the service must have <varname>RemainAfterExit=yes</varname> and at least one
<varname>ExecStop=</varname> line set. (Services lacking both <varname>ExecStart=</varname> and
<varname>ExecStop=</varname> are not valid.)</para>
<para>For each of the specified commands, the first argument must be an absolute path to an
executable. Optionally, if this file name is prefixed with <literal>@</literal>, the second token will be