# HG changeset patch # User melunko # Date 1190119504 -3600 # Node ID 5d027884a9d3f97837f75f90462b49f043b85307 # Parent 659a8a79ec31b65283406cbce5fceacc3de401a7 [svn r852] server/data/gmsd script fixed diff -r 659a8a79ec31 -r 5d027884a9d3 gmyth-stream/server/data/gmsd --- a/gmyth-stream/server/data/gmsd Mon Sep 17 18:50:42 2007 +0100 +++ b/gmyth-stream/server/data/gmsd Tue Sep 18 13:45:04 2007 +0100 @@ -24,11 +24,11 @@ echo "$PROGRAM_NAME already running." else rm -f $PIDFILE - $PROGRAM_BIN -d > $LOGFILE + $PROGRAM_BIN -d > $LOGFILE 2> $LOGFILE echo "OK" fi else - $PROGRAM_BIN -d > $LOGFILE + $PROGRAM_BIN -d > $LOGFILE 2> $LOGFILE echo "OK" fi ;; @@ -38,11 +38,12 @@ if [ -f $PIDFILE ] then PID=`cat $PIDFILE` - if ps ax | grep -q "^$PID" + if ps -p "$PID" > /dev/null then - kill -10 $PID + kill -9 $PID fi rm $PIDFILE + echo "OK" else echo "No $PROGRAM_NAME found running; no killed." fi