Inteligent service restart with s6
Hi there!
I have an embeded system that uses s6 as init. S6 is awesome, easy to use
and works perfectly.
I got to a point where I need some *more control over how services are
restarted* if a crash occurred, for example:
- Configurable sleep time before service is restarted (configured per
service)
- This interval should grow in case of consecutive crashes
- After multiple crashes the watchdog must try to restart a crashed service
at least once every 24 hours
- Current "interval" and number of crashes should be accessible
I'm not sure how to implement this, do you have any suggestions?
Is there any mechanizm in s6/execline I could use?
Should I make a contribution to s6?
Thank you,
Jan Olszak
Received on Mon Jul 25 2016 - 11:18:22 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:38:49 UTC