anchor.diff:  case $1 in
   
     start)
  -    setup
  -
       if [ -f "$PIDFILE" ]; then
         pid=$(head -1 "$PIDFILE")
   
  
positive.code: DATA_DIR=/var/vcap/data
  GARDEN_DIR=/var/vcap/data/garden
  
  function setup() {
    mkdir -p /var/vcap/sys/log/monit
    exec 1>> /var/vcap/sys/log/monit/garden.out.log
    exec 2>> /var/vcap/sys/log/monit/garden.err.log
  }
  
  <% if_p('garden.http_proxy') do |http_proxy| %>
  export HTTP_PROXY=<%= http_proxy %>
  
negative.code: 
  function stop_guardian() {
    local pid
    pid=$(cat "$PIDFILE")
  
    echo "stopping guardian"
  