From 3ae390ba020fd6c8bad9a6b384a6ff56c9fe5f5b Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Wed, 13 Mar 2013 12:43:40 +0800 Subject: [PATCH] man: Document the actual behaviour of ExecStopPost 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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 8977873c1..b8b19b386 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -464,9 +464,12 @@ ExecStopPost= Additional commands that are executed after the service - was stopped using the commands - configured in - ExecStop=. This + was stopped. This includes cases where + the commands configured in + ExecStop= were used, + where the service doesn't have any + ExecStop= defined, or + where the service exited unexpectedly. This argument takes multiple command lines, following the same scheme as described for ExecStart. Use -- 2.30.2