[systemd-devel] a way to limit restarts?
Lennart Poettering
lennart at poettering.net
Tue Feb 3 10:59:02 PST 2015
On Wed, 10.12.14 09:41, Ivan Shapovalov (intelfx100 at gmail.com) wrote:
> On Tuesday 09 December 2014 at 13:11:41, Nekrasov, Alexander wrote:
> > Totally missed those. Thanks. Will OnFailure= be activated when the limit is hit? The manual only directly describes StartLimitAction= which isn’t exactly what’s required
>
> OnFailure= will be activated each time the unit enters "failed" state, i. e.
> at the same time it is restarted.
>
> There is apparently no way to start a special unit when the start limit is reached.
> However, I may have missed it as well...
Hmm, we should either change bbehaviour of OnFailure, to only trigger
after the star limit is hit, or introduce some option to make this
configurable I guess.
Also see:
https://bugs.freedesktop.org/show_bug.cgi?id=87799
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list