<% unless p("cf_networking.disable") %>
check process vxlan-policy-agent
  with pidfile /var/vcap/sys/run/vxlan-policy-agent/vxlan-policy-agent.pid
  start program "/var/vcap/jobs/vxlan-policy-agent/bin/vxlan-policy-agent_ctl start"
  stop program "/var/vcap/jobs/vxlan-policy-agent/bin/vxlan-policy-agent_ctl stop"
  group vcap
  if failed
     host 127.0.0.1
     port <%= p("cf_networking.vxlan_policy_agent.debug_server_port") %>
     protocol HTTP
     request "/log-level"
     with timeout 10 seconds for 6 cycles
     then restart
<% end %>
