Unixpimps

Safetynet

Safetynet is a script written in perl intended to monitor and restart system processes without have to learn and write large & complex init scripts. Generally for somethings an init script is not nessesary but you still wish to make sure that the process is continually running, safetynet does just that.
When a service is found to be ‘dead’ safetynet will attempt to restart it using the commandline you specify, regardless of if it was restarted or not safetynet will send an email to an address you specify with the details. No more wondering if something has crashed or if it is still running while your not around your machine and no more fussing with large init scripts, just edit one easy to understand config file and make one entry to your Crontab and things will continue to run smoothly.Requires
Perl (At least 5.000)
Cron

Download
Version 1.15
Added a admin down function by touching a file in a state directory.

Version 1.10
Updated the config file format. It is no longer backwards compatible.
Job define’s may now span several lines.

Scroll To Top