Changes

From SME Server
Jump to navigationJump to search
4 bytes added ,  22:48, 19 August 2015
Line 89: Line 89:  
  sleep 5
 
  sleep 5
 
  PID=$(cat $PIDFILE)
 
  PID=$(cat $PIDFILE)
   if pgrep -u $RUNAS -f $NAME > /dev/null
+
   if pgrep -u $RUNAS -f "$SCRIPT" > /dev/null
 
   then
 
   then
 
     echo "$NAME is now running, the PID is $PID"
 
     echo "$NAME is now running, the PID is $PID"

Navigation menu