[systemd-devel] [RFC PATCH] service: add FailureAction= option

"Jóhann B. Guðmundsson" johannbg at gmail.com
Wed Mar 26 03:19:53 PDT 2014


On 03/26/2014 09:02 AM, Michael Olbrich wrote:
> It has the same possible values as StartLimitAction= and is executed
> immediately if a service fails.
> ---
>
> Hi Lennart,
>
> Something like this maybe? I'm not quite sure about the condition in
> service_enter_dead(). I don't think the action should be executed when the
> service is explicitly stopped. Maybe it should depend on !forbid_restart?
>
> If you like, I'll add some documentation. An maybe a follow-up patch to
> rename the StartLimitAction type? To what though?

Dont we already have OnFailure= for this ( or can be used for this 
instead of introducing FailureAction= which can be confusing to users )?

JBG


More information about the systemd-devel mailing list