mirror of
git://git.acid.vegas/anope.git
synced 2024-11-14 11:46:42 +00:00
24 lines
363 B
Bash
Executable File
24 lines
363 B
Bash
Executable File
#!/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 |