anchor.diff:  LOGFILE=$LOG_DIR/drain.log
   LISTEN_ADDR=<%= p("diego.rep.listen_addr") %>
   
  +exec 3>&1
  +
   exec 1>> $LOGFILE
   exec 2>> $LOGFILE
   
  
positive.code: 
  if [ ! -f $PIDFILE ]; then
    echo "$(date): PIDFILE does not exist"
    echo 0
    exit 0
  fi
  
  
negative.code:   done
  
    echo "$(date): rep exited"
    echo 0 >&3
    exit 0
  else
    echo "$(date): rep exited"
    echo 0 >&3
  fi
  