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

Kay Sievers kay at vrfy.org
Mon Aug 6 04:58:40 PDT 2012


On Mon, Aug 6, 2012 at 1:16 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Mon, 06.08.12 12:06, Kay Sievers (kay at vrfy.org) wrote:

>> > 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?
>
> Yes it does. PreventRestartExitStatus= would configure something that is
> orthogonal to failure/success.

That's why we have on-failure and on-success in the restart logic, right? :)

Kay


More information about the systemd-devel mailing list