<% @path = '/etc/monit/monit.d/monit-haproxy.conf' %> <% PIDFILE = "/var/run/haproxy.pid" %> check process haproxy with pidfile <%= PIDFILE %> group haproxy-<%= RUBBER_ENV %> start program = "/etc/init.d/haproxy start" stop program = "/etc/init.d/haproxy stop" if failed host <%= rubber_env.host %> port <%= rubber_env.haproxy_monitor_port %> with timeout 10 seconds for 10 cycles then restart