<% @path = '/etc/monit/monit.d/monit-resque_web.conf' pidfile = "/var/run/resque_web.pid" start_program = "HOME=/root resque-web --pid-file #{pidfile} --port #{rubber_env.resque_web_port} --no-launch #{RUBBER_ROOT}/config/initializers/resque.rb" stop_program = "HOME=/root resque-web --pid-file #{pidfile} --kill" %> check process resque_web with pidfile <%= pidfile %> group resque_web start program = "/bin/bash -l -c '<%= start_program %>'" stop program = "/bin/bash -l -c '<%= stop_program %>'" if totalmem > 350.0 MB for 15 cycles then restart