Well, I rewrote it a little (see below), and ran it, while it indeed created a few <zombie> processes, these processes disappeared after awhile (half-a- minute or so), I think cron creates the processes, but doesn't run them immediately. (And it's not a linux feature as far a I know....) > 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 exit fi echo "autorun restarted at `date` " >> $CIRCLEHOME/log/restarts & autorun &
This archive was generated by hypermail 2b30 : 12/07/00 PST