1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 03:46:37 +02:00

example.chk: Use a more reliable way to detect if services are running.

This commit is contained in:
Robby-
2014-05-30 18:27:15 +02:00
parent 0cadaedfbe
commit dc4daa25a7
+2 -1
View File
@@ -37,7 +37,8 @@ cd $ANOPATH
if [ -f "$ANODATA/$ANOPIDF" ]
then
ANOPID=`cat "$ANODATA/$ANOPIDF"`
if [ `ps auwx | grep $ANOPROG | grep $ANOPID | grep -v -c grep` = 1 ]
kill -0 $ANOPID 2>/dev/null
if [ $? -eq 0 ]
then
exit
fi