Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created March 9, 2012 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonroelofs/2004617 to your computer and use it in GitHub Desktop.
Save jasonroelofs/2004617 to your computer and use it in GitHub Desktop.
Monit config for Resque run under Upstart
<% @worker_count.times do |i| -%>
check process resque-<%= i -%> with pidfile <%= @project_root -%>/shared/pids/resque-<%= i -%>.pid
group resque
start program = "/sbin/start resque ID=<%= i -%>"
stop program = "/sbin/stop resque ID=<%= i -%>"
if changed pid 6 times within 6 cycles then stop
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment