4
mirror of git://git.acid.vegas/anope.git synced 2024-11-15 04:06:42 +00:00
anope/data/services.chk

24 lines
363 B
Plaintext
Raw Normal View History

#!/bin/sh
ANOPATH=/home/ircd/services/bin
ANODATA=/home/ircd/services/data
ANOPIDF=services.pid
ANOPROG=services
ANOARGS=""
PATH=/bin:/usr/bin:/usr/local/bin
ANOPID=
cd $ANOPATH
if [ -f "$ANODATA/$ANOPIDF" ]
then
ANOPID=`cat "$ANODATA/$ANOPIDF"`
kill -0 $ANOPID 2>/dev/null
if [ $? -eq 0 ]
then
exit
fi
rm -f "$ANODATA/$ANOPIDF"
fi
./$ANOPROG $ANOARGS