anchor.diff:          ;;
       condrestart|try-restart)
           # TODO: bad behavior. only checking instance "a" at the moment
  -        pidfile=${GRAPHITE_DIR}/storage/carbon-cache-a.pid
  -        prog=carbon-cache-a
  +        pidfile=${GRAPHITE_DIR}/storage/carbon-${CARBON_DAEMON}-a.pid
  +        prog=carbon-${CARBON_DAEMON}-a
           rh_status_q || exit 0
           restart
           ;;
  
positive.code:         if [ "${INSTANCE}" == "${CARBON_DAEMON}" ]; then
              INSTANCE="a";
          fi;
          pidfile=${GRAPHITE_DIR}/storage/carbon-cache-${INSTANCE}.pid
          prog=carbon-cache-${INSTANCE}
          
          ${PYTHON_CMD} ${GRAPHITE_DIR}/bin/carbon-${CARBON_DAEMON}.py --instance=${INSTANCE} stop;
          sleep 3
          while [ -f ${GRAPHITE_DIR}/storage/carbon-cache-${INSTANCE}.pid ]; do
              echo "waiting another 5 secs for carbon-cache-${INSTANCE} to stop"
              sleep 5
              #TODO: add timer to prevend endless waiting
          done
          rm -f /var/lock/subsys/carbon-cache-${INSTANCE}
          echo -n $"Stopping carbon-${CARBON_DAEMON}:${INSTANCE}..."
          echo_success
          echo
          
          ${PYTHON_CMD} ${GRAPHITE_DIR}/bin/carbon-${CARBON_DAEMON}.py --instance=${INSTANCE} start;
          retval=$?
          pidfile=${GRAPHITE_DIR}/storage/carbon-cache-${INSTANCE}.pid
          echo -n $"Starting carbon-${CARBON_DAEMON}:${INSTANCE}..."
          if [ rh_status_q ]; then
              touch /var/lock/subsys/carbon-cache-${INSTANCE}
              echo_success
              echo
          else
  
negative.code:             if [ "${INSTANCE}" == "${CARBON_DAEMON}" ]; then
                  INSTANCE="a";
              fi;
              pidfile=${GRAPHITE_DIR}/storage/carbon-${CARBON_DAEMON}-${INSTANCE}.pid
              prog=carbon-${CARBON_DAEMON}-${INSTANCE}
              rh_status
          done
          ;;
  