Score:0

Run systemd namespaced unit on failure of any unit

ke flag

I have a namespaced unit to send an email saying that a given service has failed. I know that you can add OnFailure units to an individual unit in order to run the specified units when it fails.

However, my system has hundreds of units, some being automatically generated. It is not feasible nor maintainable to add OnFailure to every single unit.

So how can I run the namespaced unit (with the name of the failed unit as the argument) whenever any unit fails?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.