<% unless p("disable") %>
check process policy-server-internal
  with pidfile /var/vcap/sys/run/bpm/policy-server-internal/policy-server-internal.pid
  start program "/var/vcap/jobs/bpm/bin/bpm start policy-server-internal"
  stop program "/var/vcap/jobs/bpm/bin/bpm stop policy-server-internal"
  group vcap
  if failed
     host 127.0.0.1
     port <%= p("health_check_port") %>
     protocol HTTP
     with timeout 10 seconds for 6 cycles
     then restart
<% end %>
