]>
jfr.im git - irc/gameservirc.git/blob - gameserv/cron/gscheck
2 #This file was taken from bnc2.8.6
5 GSPATH
=/home
/yourdir
/gameserv
10 # Below here should be fine and left alone
16 if test -r $GSPATH/$GSPIDFILE; then
17 GSPID
=$(cat $GSPATH/$GSPIDFILE)
18 if $(kill -CHLD $GSPID >/dev/null 2>&1)
20 # lucky for us GameServ is still up
24 echo "stale pid file (erasing it)"
25 rm -f $GSPATH/$GSPIDFILE
28 echo "GameServ is dead........restarting it"
30 if test -x $GSBIN ;then
34 echo "could not reload"