[systemd-devel] start service only on specific exit status of some prog

Lennart Poettering lennart at poettering.net
Wed Aug 24 15:39:28 PDT 2011


On Wed, 24.08.11 23:54, Marius Tolzmann (tolzmann at molgen.mpg.de) wrote:

> 
> On 24.08.2011 21:21, Lennart Poettering wrote:
> >On Wed, 24.08.11 21:12, Marius Tolzmann (tolzmann at molgen.mpg.de) wrote:
> >
> >>
> >>On 24.08.2011 18:52, Lennart Poettering wrote:
> >>>Hmm, yeah, if ExecStartPre= we put the unit in failure mode.
> >>>
> >>>So, let me see if I got this right: you are looking for something like
> >>>ExecStartPre= but twhere the program when it returns non-zero should
> >>>just cause the service to be skipped but not be put in failure state?
> >>
> >>Yes. that's my request.
> >
> >I have now added this to the TODO list. It won't be easy to add this
> >though, as execution extrernal processes synchronously is not an
> >option. More likely I'll add an additional prefix char to ExecStart=
> >(like "-") which would indicate skip-on-fail or so.
> 
> I think you mean ExecStartPre= here!?

Indeed. Sorry for the confusion.

> And thanks for considering implementing this feature sometime.. 8)

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list