[systemd-devel] [PATCH] man: Document the actual behaviour of ExecStopPost

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Fri Mar 8 05:40:36 PST 2013


On Fri, Mar 08, 2013 at 04:26:36AM -0500, Mathieu Bridon wrote:
> The documentation makes it sound like ExecStopPost is only run when
> stopping the service with `systemctl stop foo.service`
> 
> However, that is not the case, as it also gets run when the service
> unexpectedly exists, crashes, or gets SIGKILLed.
> ---
>  man/systemd.service.xml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man/systemd.service.xml b/man/systemd.service.xml
> index 8977873..8001d73 100644
> --- a/man/systemd.service.xml
> +++ b/man/systemd.service.xml
> @@ -464,8 +464,8 @@
>                                  <term><varname>ExecStopPost=</varname></term>
>                                  <listitem><para>Additional commands
>                                  that are executed after the service
> -                                was stopped using the commands
> -                                configured in
> +                                was stopped, either unexpectedly or
> +                                using the commands configured in
Your patch goes in the right direction, but those are not exhaustive
alternatives, e.g. I can stop the service using DBus.

Zbyszek


More information about the systemd-devel mailing list