mcconnell 2003/08/07 15:23:02
Modified: src/script phoenix.sh
Log:
Fix to script for execution under Mandrake 9.1 submitted by Manuel Soto and
validated by Noel Bergman.
Revision Changes Path
1.10 +5 -2 avalon-phoenix/src/script/phoenix.sh
Index: phoenix.sh
===================================================================
RCS file: /home/cvs/avalon-phoenix/src/script/phoenix.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- phoenix.sh 4 Jun 2003 10:08:57 -0000 1.9
+++ phoenix.sh 7 Aug 2003 22:23:02 -0000 1.10
@@ -177,8 +177,11 @@
if [ -f $PHOENIX_PID ]
then
- echo "Already Running!!"
- exit 1
+ if ps -p `cat $PHOENIX_PID ` >/dev/null 2>/dev/null
+ then
+ echo "Already Running!!"
+ exit 1
+ fi
fi
echo "STARTED Phoenix `date`" >> $PHOENIX_CONSOLE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]