From fe78538cab13fd8b6180dfdfab87d86bfdd1ac58 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 8 Apr 2020 15:39:20 +0100 Subject: [PATCH] man: explicitly note that ExecSt*Post does count for After/Before ordering --- man/systemd.service.xml | 8 +++++++- man/systemd.unit.xml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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=, -- 2.47.3