From: Lennart Poettering Date: Wed, 13 Mar 2019 19:28:28 +0000 (+0100) Subject: man: be even more explicit that RestartPreventExitStatus= does not affect ExecStartPre= X-Git-Tag: v242-rc1~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5763971014a8e2bea44d1f8754cf9e41144fdf19;p=thirdparty%2Fsystemd.git man: be even more explicit that RestartPreventExitStatus= does not affect ExecStartPre= The man page was already pretty clear about this, but apparently not clear enough, let's hence extend this further. Fixes: #11868 --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index b8f3bcad606..2bc318f9a97 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -807,24 +807,26 @@ RestartPreventExitStatus= - Takes a list of exit status definitions that, - when returned by the main service process, will prevent - automatic service restarts, regardless of the restart setting - configured with Restart=. Exit status - definitions can either be numeric exit codes or termination - signal names, and are separated by spaces. Defaults to the - empty list, so that, by default, no exit status is excluded - from the configured restart logic. For example: + + Takes a list of exit status definitions that, when returned by the main service + process, will prevent automatic service restarts, regardless of the restart setting configured with + Restart=. Exit status definitions can either be numeric exit codes or termination + signal names, and are separated by spaces. Defaults to the empty list, so that, by default, no exit + status is excluded from the configured restart logic. For example: RestartPreventExitStatus=1 6 SIGABRT - ensures that exit codes 1 and 6 and the termination signal - SIGABRT will not result in automatic - service restarting. This option may appear more than once, in - which case the list of restart-preventing statuses is - merged. If the empty string is assigned to this option, the - list is reset and all prior assignments of this option will - have no effect. + ensures that exit codes 1 and 6 and the termination signal SIGABRT will not + result in automatic service restarting. This option may appear more than once, in which case the list + of restart-preventing statuses is merged. If the empty string is assigned to this option, the list is + reset and all prior assignments of this option will have no effect. + + Note that this setting has no effect on processes configured via + ExecStartPre=, ExecStartPost=, ExecStop=, + ExecStopPost= or ExecReload=, but only on the main service + process, i.e. either the one invoked by ExecStart= or (depending on + Type=, PIDFile=, …) the otherwise configured main + process.