Is there any way
supervisord can automatically restart a failed/exited/terminated job and send me a notification email with a dump of the last x lines of log file?
There is a plugin called superlance.
You install it with
The next thing you do is you go into your
This should be followed by a "supervisorctl update". When a process "exits" you will now get a notification sent to firstname.lastname@example.org.
If you only want to listen to some selected apps you can exchange the
Regarding the automatic restart:
you should make sure that