[systemd-devel] [PATCH] service: allow service to inhibit respawn with special return code

Michael Biebl mbiebl at gmail.com
Mon Aug 6 08:30:17 PDT 2012


2012/8/3 Lennart Poettering <lennart at poettering.net>:
> On Tue, 24.07.12 16:43, Lukas Nykryn (lnykryn at redhat.com) wrote:
>
> Maybe DontRestartExitStatus=? The libc calls the generalization of
> exit code and exit signal the "exit status", so that sounds like the
> best term to use here.
>
> And then people could write:
>
>    DontRestartExitStatus=SIGTERM 1 2 3 4

RestartNormalExitStatus = ...


>
> One day, if we really need to make the failure/success sets configurable
> too, we could then add:
>
>    DontFailExitStatus=SIGSEGV 1 2

NormalExitStatus = ...

Doesn't sound too bad to me.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list