write a script that checks for processes being dead or gone, then relaunches it. Cron that script.
Just an example for non parameterized script relaunching 7997, should be something like
Code:
if ! ps ax | grep "zone . myip 7997 myip" |grep -v "grep" 1> /dev/null 2> /dev/null ; then
echo "Zone on port 7997 is dead, restarting ..."
startzone7997.sh
fi
then add to your crontab :
Code:
*/3 * * * * relaunchscript.sh 2>&1 >> ~/restart.log
to test every 3 mins.
Pb is deciding what to restart, if world is down, or one or more zones. Restart, one, all, ... ? Up to you
. This is just an idea, i'd be interested in some public script if you set up one.