You are not logged in.

#1 2016-05-03 11:58:51

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Running script when detected service failure

I have couple systemd services I care about if they failed. Some are system, some are user. How can I run custom script whenever any service fails?

I know about OnFailure option, but that is per service, not for all services. I would like to for every failed unit to execute send-notify in my user session with basic service information which failed.

Offline

Board footer

Powered by FluxBB