2 ms·
I find supervisor's event listener functionality useful for implementing watchdog processes. I have the supervised process write an event whenever it successful
by js2 5y ago
I find supervisor's event listener functionality useful for implementing watchdog processes. I have the supervised process write an event whenever it successfully completes a task. Meanwhile, a separate event listener process has a watchdog timer which asks supervisor to restart the supervised process if it hasn't checked in recently enough.
Does systemd have anything like supervisor events?
http://supervisord.org/events.html#events http://supervisord.org/events.html#events
- tomnipotent 5y agoYes, sd_notify(0, "WATCHDOG=1") should get you started.