Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-04 Thread Nekrasov, Alexander
, Alexander; systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] reacting to unit failures (OnFailure) On 12/02/2014 03:12 PM, Nekrasov, Alexander wrote: Lennart just gave me a solution, thank you. I'll use templates I have a system where components at the single node level have

Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-04 Thread Lennart Poettering
On Thu, 04.12.14 16:17, Nekrasov, Alexander (alexander.nekra...@emc.com) wrote: If I may go back to RestartSec, this gives me an ability to sleep before attempting to restart. I could see where I might use that, but I also need another ability, which is to stop restarting a service if it

Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-02 Thread Nekrasov, Alexander
, December 01, 2014 5:46 PM To: Nekrasov, Alexander Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] reacting to unit failures (OnFailure) On Mon, 01.12.14 17:10, Nekrasov, Alexander (alexander.nekra...@emc.com) wrote: Hello, While converting from Upstart to SystemD, came

Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-02 Thread Lennart Poettering
: Monday, December 01, 2014 5:46 PM To: Nekrasov, Alexander Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] reacting to unit failures (OnFailure) On Mon, 01.12.14 17:10, Nekrasov, Alexander (alexander.nekra...@emc.com) wrote: Hello, While converting from

Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-02 Thread Jóhann B. Guðmundsson
On 12/02/2014 03:12 PM, Nekrasov, Alexander wrote: Lennart just gave me a solution, thank you. I'll use templates I have a system where components at the single node level have dependencies and HA policies, such as restart this many times within this interval, if still fails - run this

[systemd-devel] reacting to unit failures (OnFailure)

2014-12-01 Thread Nekrasov, Alexander
Hello, While converting from Upstart to SystemD, came upon this issue. Is this case not covered or am I missing something? In Upstart, I can start a job when another job fails, and there's a $JOB variable that tells me what was the job that failed. start on (stopped RESULT=failed

Re: [systemd-devel] reacting to unit failures (OnFailure)

2014-12-01 Thread Lennart Poettering
On Mon, 01.12.14 17:10, Nekrasov, Alexander (alexander.nekra...@emc.com) wrote: Hello, While converting from Upstart to SystemD, came upon this issue. Is this case not covered or am I missing something? In Upstart, I can start a job when another job fails, and there's a $JOB variable