Here is a script that will keep daemons running
if the decide to die for some unforseen reason.
This tip generously supported by: ken@theglobeandmail.com
-------------------- cut here -----------------
#!/bin/csh
#
# NAME
# keepitup.csh - Keep demons up and running
#
# SYNOPSIS
# keepitup.csh
#
# DESCRIPTION
# If any of the following processes are down, then start them up
# again. This script can be run every few minutes from a crontab.
#
# AUTHOR
# Ken Stevens
if ( $status > 0 ) then
echo Restarting $daemon
date
$daemon &
endif
end
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.