[systemd-devel] [RFC PATCH] service: add FailureAction= option
Michael Olbrich
m.olbrich at pengutronix.de
Wed Mar 26 06:09:27 PDT 2014
On Wed, Mar 26, 2014 at 10:19:53AM +0000, "Jóhann B. Guðmundsson" wrote:
> 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 )?
No. Take a look at the possible actions. This is intended to be used e.g.
in combination with watchdogs. A unit that may or may not start cannot
express 'reboot right now'.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the systemd-devel
mailing list