From 2b42e4f0c9589d40e7a4ffe9242fe29d96942130 Mon Sep 17 00:00:00 2001 From: Ivan Kruglov Date: Thu, 3 Sep 2026 10:18:29 -0700 Subject: [PATCH] man: document what a failure action returns without an exit status --- man/systemd.unit.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index b9a346897e..7c1704f160 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1140,7 +1140,9 @@ 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 + process of the unit (if this applies) is returned from the service manager. If there is no such + status, FailureAction= returns 255 instead, while + SuccessAction= leaves the exit status unchanged. However, this may be overridden with FailureActionExitStatus=/SuccessActionExitStatus=, see below. will trigger a userspace reboot operation.