mirror of
git://git.acid.vegas/anope.git
synced 2024-11-15 12:16:41 +00:00
24 lines
363 B
Plaintext
24 lines
363 B
Plaintext
|
#!/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
|