[systemd-devel] systemd restart patch

Lennart Poettering lennart at poettering.net
Tue Feb 8 02:20:18 PST 2011


On Thu, 03.02.11 21:35, Michael Biebl (mbiebl at gmail.com) wrote:

> 
> 2011/2/3 Cristian Patrascu <Cristian.Patrascu at windriver.com>:
> > So, for these last two features I created a patch, which adds two more
> > options for a .service :
> > - RestartRetries=n (where n is the number of restart retries)
> > - ExecPostRestarts=/some/cmd (where the command "/some/cmd" will be executed
> > after restart retries are finished).
> 
> I think the name of this option is not very descriptive and imho it
> could be useful in a more general way. What do you think about using
> 
> ExecStartOnFailure=/some/cmd (send an email or what not)

We already have OnFailure= for this. It takes a service name instead of
a process path, but it should be equally useful.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list