anchor.diff:  
   stop() {
       echo -n "Shutting down supervisor: "
  -    status supervisord > /dev/null
  +    status > /dev/null
       # status() returns 3 if and only if the service is properly stopped.
       [ $? -eq 3 ] && echo "already stopped" && return 0
       killproc supervisord
  
positive.code:         stop
      ;;
      status)
          status supervisord
      ;;
      restart)
          # Exit with an error if the shutdown was not successful.
  
negative.code: 
  source /etc/rc.d/init.d/functions
  
  NAME="supervisord"
  PIDFILE="/var/run/$NAME.pid"
  
  status() {
    if [ -f $PIDFILE ]; then
      echo "supervisord is running"
      return 0
    else
      echo "supervisord is stopped"
      return 3
    fi
  }
  
  start() {
      echo -n "Starting supervisor: "
      # status() returns 0 if and only if the service is properly started.
      status > /dev/null && echo "already running" && return 0
      daemon "<%= @supervisord %> -c <%= node['supervisor']['conffile'] %> <%= @node['supervisor']['daemon_options'] %> -p $PIDFILE"
      RETVAL=$?
      echo
      [ $RETVAL -ne 0 ] && return $RETVAL
  