Supervisor Daemon Script
This tool checks that the process is running and at all times and starts it in the case it is down. It takes these as parameters:
- Seconds to wait between attempts to restart service
- Number of attempts before giving up
- Process to supervise
- Check interval in seconds
Example
./supervisor.sh 1 2 "<process>" 4