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

Kay Sievers kay at vrfy.org
Mon Aug 6 03:06:29 PDT 2012


On Mon, Aug 6, 2012 at 2:14 AM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> 'Twas brillig, and Lennart Poettering at 03/08/12 19:46 did gyre and gimble:
>> 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.
>
> Would InhibitRestartExitStatus= work for you? Something feels wrong with
> Dont* (partly because "don't" is a contraction of "do not" and
> DoNotRestartExitStatus just feels wrong too).
>
> Not sure if "Inhibit*" is maybe used somewhere already that would make
> this less desirable tho'.

We have:
  Restart=on-success | on-failure | ...

Does this setting really binds to the "Restart" logic only?

How about:
  ExitStatusFailure=
  ExitStatusSuccess=

which matches the on-* values in Restart=, but also the C constants
for exit(), and we could possibly re-use these lists in other
conditions?

Kay


More information about the systemd-devel mailing list