[systemd-devel] reacting to unit failures (OnFailure)
alexander.nekrasov at emc.com
Tue Dec 2 07:12:30 PST 2014
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 action" where action is a sequence of commands. Components provide this information in their own language and I have to generate systemd configuration for them. It's more complex than just rebooting the node so I couldn't use FailureAction.
> -----Original Message-----
> From: systemd-devel [mailto:systemd-devel-bounces at lists.freedesktop.org]
> On Behalf Of "Johann B. Gu?mundsson"
> Sent: Tuesday, December 02, 2014 9:55 AM
> To: systemd-devel at lists.freedesktop.org
> Subject: Re: [systemd-devel] reacting to unit failures (OnFailure)
> On 12/02/2014 01:00 PM, Nekrasov, Alexander wrote:
> > Meaning that I have to create a myfailureunit<name>.service file/unit
> for every unit I want to register for? Which in my case is going to be
> almost all of them, in a high availability system
> Can you clarify what you are doing in this HA setup so we can better
> understand what you are trying to do/achieve ?
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
More information about the systemd-devel