From: Luca Boccassi Date: Wed, 8 Apr 2020 14:39:20 +0000 (+0100) Subject: man: explicitly note that ExecSt*Post does count for After/Before ordering X-Git-Tag: v246-rc1~629 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe78538cab13fd8b6180dfdfab87d86bfdd1ac58;p=thirdparty%2Fsystemd.git man: explicitly note that ExecSt*Post does count for After/Before ordering --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 17e446e203f..02eb7067899 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -423,6 +423,9 @@ ExecStart=, or ExecStartPost= fail (and are not prefixed with -, see above) or time out before the service is fully up, execution continues with commands specified in ExecStopPost=, the commands in ExecStop= are skipped. + + Note that the execution of ExecStartPost= is taken into account for the purpose of + Before=/After= ordering constraints. @@ -534,7 +537,10 @@ service, as well as the main process' exit code and status, set in the $SERVICE_RESULT, $EXIT_CODE and $EXIT_STATUS environment variables, see systemd.exec5 for - details. + details. + + Note that the execution of ExecStopPost= is taken into account for the purpose of + Before=/After= ordering constraints. diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 64240208c2b..0d223d74db0 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -750,7 +750,7 @@ type when precisely a unit has finished starting up. Most importantly, for service units start-up is considered completed for the purpose of Before=/After= when all its configured start-up commands have been invoked and they either failed or reported start-up - success. + success. Note that this does includes ExecStartPost (or ExecStopPost for the shutdown case). Note that those settings are independent of and orthogonal to the requirement dependencies as configured by Requires=, Wants=, Requisite=,