my mud is run on a friends linux box that reboots alot (always have the latest linux though :) so I wrote this little cron script to restart autorun after the reboot. It seems to work, but leaves a zombie process lying around. If anyone could tell me how to get rid of the zombie I'd appeciate it. Daniel -------CUT HERE---------- #!/bin/sh # # CircleMUD 3.0 cron job script # by Daniel Cotey # Copyright (c) 1996 Daniel Cotey # This script is released under the circle mud license # # ############################################################################# # # This script is meant to be called by cron, to restart the autorun script # should it ever die (machine reboot or crash, etc.) it requires a crontab # entry (and thus access to cron from the account that the mud is running on) # # the crontab entry should look like : # # 0,15,30,45 * * * * ~/circle30bpl10/restart # # if you want restart to check every 15 minutes. # # NOTE: you will get mail everytime autorun is restarted, plan accordingly. # # ############################################################################# PATH=$HOME:$HOME/circle30bpl10:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/sbin CIRCLEHOME=~/circle30bpl10 cd $CIRCLEHOME if ps -x|grep -v grep |grep autorun then : else autorun & echo "autorun restarted at `date` " >> $CIRCLEHOME/log/restarts & exit fi
This archive was generated by hypermail 2b30 : 12/07/00 PST