man: systemd.service(5): clarify behavior of SuccessExitStatus

The behavior of this is a little cryptic in that $MAINPID must exit as
a direct result of receiving a signal in order for a listed signal to
be considered a success condition.
This commit is contained in:
Dave Reisner 2014-02-14 01:40:04 +01:00 committed by Lennart Poettering
parent 112cfb1814
commit 29e254f7f0

View file

@ -748,7 +748,10 @@ ExecStart=/bin/echo $ONE $TWO ${TWO}
<constant>SIGTERM</constant>, and <constant>SIGPIPE</constant>. Exit status
definitions can either be numeric exit
codes or termination signal names,
separated by spaces. For example:
separated by spaces. Signals will only
be considered if the service does not implement
a signal handler and exits as a direct result
of receiving the signal. For example:
<programlisting>SuccessExitStatus=1 2 8 <constant>SIGKILL</constant></programlisting>
ensures that exit codes 1, 2, 8 and
the termination signal