[systemd-devel] [PATCH] service: allow service to inhibit respawn with special return code
Adam Spragg
adam at spra.gg
Mon Aug 6 09:33:58 PDT 2012
On Monday 06 Aug 2012 12:16:02 Lennart Poettering wrote:
> On Mon, 06.08.12 12:06, Kay Sievers (kay at vrfy.org) wrote:
> >
> > How about:
> > ExitStatusFailure=
> > ExitStatusSuccess=
>
> success and failure should be parititions of
> the exit status set, i.e. all exits that are not failure are success and
> all that are success are not failure, and there is nothing but
> success/failure in the set.
Could allow either, but make it an error to use both. So if you configure
ExitStatusSuccess, then any values not listed are failures, but if you
configure ExitStatusFailure, then any values not listed are successes.
Or just have ExitStatusSuccess, but allow "!" as the first character which
negates the list, meaning "any status except those listed is success"
Maybe?
Adam
More information about the systemd-devel
mailing list