Changes

From SME Server
Jump to navigationJump to search
Line 64: Line 64:  
         printf "%-50s" "Checking $NAME..."
 
         printf "%-50s" "Checking $NAME..."
 
     if [ -f $PIDFILE ]; then
 
     if [ -f $PIDFILE ]; then
PID=$(cat $PIDFILE)
+
        PID=$(cat $PIDFILE)
 
             if [ -z "$(ps axf | grep ${PID} | grep -v grep)" ]; then
 
             if [ -z "$(ps axf | grep ${PID} | grep -v grep)" ]; then
printf "%s\n" "The process appears to be dead but pidfile still exists"
+
                printf "%s\n" "The process appears to be dead but pidfile still exists"
 
             else
 
             else
echo "Running, the PID is $PID"
+
                echo "Running, the PID is $PID"
 
             fi
 
             fi
else
+
    else
printf "%s\n" "Service not running"
+
        printf "%s\n" "Service not running"
 
     fi
 
     fi
 
  }
 
  }

Navigation menu