anchor.diff:        while [ $(ps -p $pid | wc -l ) -gt '1' ]; do
           echo -n '.'
           (( timeout ++))
  -        if [ $timeout -gt '30' ]; then return; fi
  +	if [ $timeout -gt '30' ]; then return 1; fi
           sleep 1
         done
   
  -      # Check for pidfile
  -      timeout=0
  -      while [ -f $PIDFILE  ]; do
  -        echo -n '.'
  -        (( timeout++ ))
  -        if [ $timeout -gt '15' ]; then return; fi
  -        sleep 1
  -      done
  +      rm -f $PIDFILE
   
         echo;
   
  
positive.code:     while ps aux | grep 'java' | grep -e "es.pidfile"; do
        echo -n '.'
        (( timeout-- ))
        if [ $timeout -lt '1' ]; then return; fi
        sleep 1
      done;
      start
  
negative.code:       if [ ! $CHECK_PID_RUNNING ]; then
          echo -e "\033[1mPID file found, but no matching process running?\033[0m"
          echo    "Removing PID file..."
  	rm -f $PIDFILE
          exit 0
        fi
  
  