Re: [systemd-devel] a way to limit restarts?

2015-02-03 Thread Lennart Poettering
On Wed, 10.12.14 09:41, Ivan Shapovalov (intelfx...@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

[systemd-devel] a way to limit restarts?

2014-12-09 Thread Nekrasov, Alexander
Hi, There's a routine need to support this scenario: a service runs that can fail and needs to be restarted. But if it just keeps failing it doesn't make sense to keep restarting forever, it's just overhead and the system is stuck. So in that case 1) the service needs to be left stopped in

Re: [systemd-devel] a way to limit restarts?

2014-12-09 Thread Mantas Mikulėnas
On Tue, Dec 9, 2014 at 7:47 PM, Nekrasov, Alexander alexander.nekra...@emc.com wrote: Hi, There’s a routine need to support this scenario: a service runs that can fail and needs to be restarted. But if it just keeps failing it doesn’t make sense to keep restarting forever, it’s just

Re: [systemd-devel] a way to limit restarts?

2014-12-09 Thread Nekrasov, Alexander
: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] a way to limit restarts? On Tue, Dec 9, 2014 at 7:47 PM, Nekrasov, Alexander alexander.nekra...@emc.commailto:alexander.nekra...@emc.com wrote: Hi, There’s a routine need to support this scenario: a service runs that can fail and needs

Re: [systemd-devel] a way to limit restarts?

2014-12-09 Thread Ivan Shapovalov
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