startmud

gurba-0.40/startmud · 442 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

#!/bin/bash
#  Bash script to keep the mud up forever

# modify as necessary
dgddir=/home/erlends/gurba

########################################
logdir=$dgddir/lib/logs
logs="driver.log catch runtime log"
logfile=$logdir/driver.log

bindir=$dgddir/bin
driver=./driver
config=./mud.dgd

cd $dgddir

for f in $logs ; do mv -f $logdir/$f $logdir/$f.old > /dev/null 2>&1 ; done

date > $logfile
$bindir/$driver $dgddir/$config >> $logfile 2>&1

Site Stats

Snippets: 1791
Codebases: 571