#!/bin/csh -f
#
# sh so others can use the fucker!
#
# Restart LPMud a lot of times, in case of a crash.
#
#limit datasize 6m
umask 022
cd /u/sweeney2/mmcg/sim
unlimit coredumpsize
limit stacksize 1M
while ( 1 )
if -e lpc/NO_RESTART then
echo "lpc/NO_RESTART found; exiting."
exit 0
endif
if -x lpc/shat then
# echo -n "runmW: `hostname`: " >> mudlib/UPSINCE
# date >> mudlib/UPSINCE
if -x findnew then
findnew &
endif
lpc/shat -c -e -w
else
echo `date`': driver not found (server failure?) - sleeping'
sleep 300
endif
end