From 6a4e939dd007fef153b0ed5266d761047fb4af06 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 16 Nov 2018 12:40:28 +0100 Subject: [PATCH] man: document FailureActionExitStatus=/SuccessActionExitStatus= --- man/systemd.unit.xml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index be77e72290..2c66db854b 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -887,10 +887,26 @@ cause no dirty file systems on reboot (i.e. equivalent to systemctl reboot -f) and causes immediate execution of the reboot2 system call, which - might result in data loss. Similarly, , , - have the effect of powering down the system with similar - semantics. causes the manager to exit following the normal shutdown procedure, and - causes it terminate without shutting down services. + might result in data loss (i.e. equivalent to systemctl reboot -ff). Similarly, + , , have the effect + of powering down the system with similar semantics. causes the manager to exit following + the normal shutdown procedure, and causes it terminate without shutting down + services. When or is used by default the exit status of the + main process of the unit (if this applies) is returned from the service manager. However, this may be overriden + with FailureActionExitStatus=/SuccessActionExitStatus=, see + below. + + + + FailureActionExitStatus= + SuccessActionExitStatus= + + Controls the exit status to propagate back to an invoking container manager (in case of a + system service) or service manager (in case of a user manager) when the + FailureAction=/SuccessAction= are set to or + and the action is triggered. By default the exit status of the main process of the + triggering unit (if this applies) is propagated. Takes a value in the range 0…255 or the empty string to + request default behaviour.