anchor.diff:  LOGFILE="/var/log/$NAME.log"
   
   get_pid() {
  -    cat "$PIDFILE"
  +    pgrep -f @consul_binary
   }
   
   is_running() {
  -    [ -f "$PIDFILE" ] && ps `get_pid` > /dev/null 2>&1
  +    ps "`get_pid`" > /dev/null 2>&1
   }
   
   case "$1" in
  
positive.code:             exit 1
          else
              echo "$NAME stopped"
              if [ -f "$PIDFILE" ]; then
                  rm "$PIDFILE"
              fi
          fi
      else
          echo "$NAME not running"
  
negative.code:         echo "$NAME already running"
      else
          echo "Starting $NAME"
          su -l `id -u -n` -c "$CMD >> \"$LOGFILE\" &"
          if ! is_running; then
              echo "Unable to start $NAME, see $LOGFILE"
              exit 1
  