[IRCServices] ircservice crontab

Chris Knipe savage at savage.za.org
Thu Nov 1 14:56:01 PST 2001


Here's mine just for the curious...


Regards,
Chris Knipe
(083) 430-8151



On Thu, 1 Nov 2001, Dung T. Nguyen wrote:

>Hello Scott,
>
>      I been search in mailing list looking for ircservices crontab but
>I could not get it. Could you send me one ?
>
>     Thank you very much for your times, sorry for bothered you with
>this.
>
>                                                 Yours truly,
>
>
>-----------------------------------------------------------
>To unsubscribe, mail ircservices-request at ircservices.za.net
>with the word UNSUBSCRIBE in the subject of the mail.
>http://www.ircservices.za.net/mailman/listinfo/ircservices
>
>
-------------- next part --------------
#!/bin/sh
SERVBIN=services
SERVPIDFILE=data/services.pid
SERVPATH=/home/savage/ircd

cd $SERVPATH
if test -r $SERVPATH/$SERVPIDFILE; then
     SERVPID=$(cat $SERVPATH/$SERVPIDFILE)
     if $(kill -CHLD $SERVPID >/dev/null 2>&1)
     then
     # lucky for us SERV is still up
        exit 0
     fi
     echo ""
     echo "stale pid file (erasing it)"
     rm -f $SERVPATH/$SERVPIDFILE
fi
echo ""
echo "Services is dead........restarting Services"
echo ""
if test -x $SERVBIN ;then
   $SERVPATH/$SERVBIN
   exit 0
fi
echo "could not reload"