Monitoring Processes with Supervisord

“As some point you’ll likely find yourself writing a script which needs to run all the time – a “long running script”. These are scripts that shouldn’t fail if there’s an error, or ones that should restart when the system reboots.

To accomplish this, we need something to watch these scripts. Such tools are process watchers. They watch processes and restart them if they fail, and ensure they start on system boot…”