summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-20 21:30:05 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-21 19:09:32 +0100
commite4b45b32e59d7481fbbb0756d012bba6556223a8 (patch)
tree69f5860d16faef71e81a1b0b1fa50e166c01d325
parent33fc1800d692ab84eeb9e50342ff75204c335319 (diff)
man: document that services need at least one of ExecStart= or ExecStop=
Fixes: #4521
-rw-r--r--man/systemd.service.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index 684029bdb4..b707961a59 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -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