summaryrefslogtreecommitdiff
path: root/man/systemd.service.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-15 11:25:19 +0100
committerLennart Poettering <lennart@poettering.net>2017-11-17 11:25:02 +0100
commit8adf53582c8b5ab486736e8f9541baf9853aa2de (patch)
treefbc46cc3f8d440e68dea0b1e5e45608224022b46 /man/systemd.service.xml
parent78a263f432c7c7b9f5c2ab9df6c5f311f7debcb9 (diff)
downloadsystemd-8adf53582c8b5ab486736e8f9541baf9853aa2de.tar.gz
man: document that ExecStop= is executed during restarts
Fixes: #7126
Diffstat (limited to 'man/systemd.service.xml')
-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 03cd14ceff..43c6435dcb 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -461,7 +461,9 @@
start-up failed, for example because any of the commands specified in <varname>ExecStart=</varname>,
<varname>ExecStartPre=</varname> or <varname>ExecStartPost=</varname> failed (and weren't prefixed with
<literal>-</literal>, see above) or timed out. Use <varname>ExecStopPost=</varname> to invoke commands when a
- service failed to start up correctly and is shut down again.</para>
+ service failed to start up correctly and is shut down again. Also note that, service restart requests are
+ implemented as stop operations followed by start operations. This means that <varname>ExecStop=</varname> and
+ <varname>ExecStopPost=</varname> are executed during a service restart operation.</para>
<para>It is recommended to use this setting for commands that communicate with the service requesting clean
termination. When the commands specified with this option are executed it should be assumed that the service is