Here's mine:
#!/usr/bin/bash
#
PORT=xxxx
ulimit -Sc unlimited
while ( : ) do
DATE=`date`
echo "autorun starting game $DATE" >> ../log/syslog
echo "running pendulus/rom on $PORT" >> ../log/syslog
../pendulus/rom $PORT >> ../log/syslog 2>&1
tail -30 ../log/syslog > ../log/syslog.CRASH
fgrep "restore" ../log/syslog >> ../log/restores
fgrep "new player" ../log/syslog >> ../log/newplayers
fgrep "slay" ../log/syslog >> ../log/slayed
mv ../log/syslog ../log/syslog.`date +%b%d%y-%H:%M:%S`
touch ../log/syslog
if [ -r shutdown.txt ]; then
DATE=`date`
echo "autoscript killed $DATE" >> ../log/syslog
rm shutdown.txt
exit
fi
sleep 5
echo "Mud (port: $PORT) has crashed" | mail <snip>
done
This will send email to my pager when the mud crashes. Very handy.
> -----Original Message-----
> From: Tom Whiting [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 29, 2002 3:18 AM
> To: Despret, Jerome
> Cc: [email protected]
> Subject: Re: Startup script
>
>
> Try downloading another copy of rom and grabbing that?
> Alternatively, you could use another script. The one I've
> been using for
> the past two years can be found in the D.R. web page
> (http://drealms.kyndig.com). I take no credit for it, because I didn't
> write it, but I modified it well enough to be understandable,
> and added
> a cron example in there as well, so that the mud is checked every few
> minutes, and if not up, it's restarted.
>
> On Fri, 2002-03-29 at 01:50, Despret, Jerome wrote:
> > I kindof screwed my startup scrip.
> >
> > anyone have a perl or bash or csh one to avoid me to rewrite one ?
> >
> >
> > Fallen Angels mud resources
> > http://fangels.org/
> >
> >
> > ____________________________________
> > Jerome Despret
> > The Sims Online
> > Oracle database architech
> >
> >
> >
> > --
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
> >
>
>