man: document that ExecStop= is executed during restarts
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Nov 2017 10:25:19 +0000 (11:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:25:02 +0000 (11:25 +0100)
Fixes: #7126

man/systemd.service.xml

index 03cd14c..43c6435 100644 (file)
         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