<% if p("cf-mysql-backup.disabled") == false %>
check process streaming-mysql-backup-tool
  with pidfile /var/vcap/sys/run/streaming-mysql-backup-tool/streaming-mysql-backup-tool.pid
  start program "/var/vcap/jobs/streaming-mysql-backup-tool/bin/streaming-backup_ctl start" with timeout 60 seconds
  stop program "/var/vcap/jobs/streaming-mysql-backup-tool/bin/streaming-backup_ctl stop" with timeout 10 seconds
  group vcap
<% end %>
