IDependOn-Set: 1 IDependOn-Set: 3 IDependOn-Set: 66 IDependOn-Set: 85 IDependOn-Set: 96 IDependOn-Set: 97 LastModifiedSecs: 965707753 Parent: 66 SequenceNumber: 2 Title: keepprocalive Part: 0 Author-Set: sauer@cloudmaster.com LastModifiedSecs: 965707753 Type: monospaced Lines: 12 #!/bin/bash # a real quick script designed to start a process if it dies # add this to cron, and have it run every 5 minutes with a line like this: # */5 * * * * $HOME/bin/keepprocalive # PROGRAM="/usr/local/mrtg/bin/update-mailstats.pl" if /sbin/checkproc $PROGRAM; then exit 0; else echo "starting $PROGRAM" startproc $PROGRAM fi EndPart: 0