anchor.diff:          echo "usage: daemon {start|stop|status}" >&2
           exit 1
           ;;
  -esac+esac
  
positive.code:         ;;
      stop)
          if [ "" = "$FOUND_PID" ]; then
              echo "Service not running? File $LOG_PID not exist."
              exit 1
          else
              kill $FOUND_PID
              sleep 2
              FOUND_PID=`ps -ef |grep $MAIN |grep -v grep |awk {print $2}'`
              if [ "" != "$FOUND_PID" ]; then
                  echo "Sending kill -9 to process."
                  kill -9 $FOUND_PID
              fi
          fi 
          ;;
      status)
  
negative.code:         if [ "" = "$FOUND_PID" ]; then
              cd   $HOME_DIR
              echo $CMD $MAIN
              # For compatibility with runit we cannot backgroud 
              # ourselves with a '&' at the end, though we do
              # need to exec.
              exec $CMD $MAIN >$LOG_OUT 2>$LOG_ERR
          else 
              echo "Service already running!"
              exit 1
  