(Answer) (Category) Products of Aardvarks With Chisels : (Category) Linux : (Category) Handy shell scripts :
keepprocalive
#!/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
[Append to This Answer]
2000-Aug-07 11:09pm
Previous: (Answer) printimages.pl
Next: (Answer) findunusedUID
This document is: http://www.cloudmaster.com/~sauer/projects/index.cgi?file=96
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by sauer@cloudmaster.com