Sha256: 12f284ec357914a8b75ef478415a563c5bdbc3fc9c35754274a4a559e4fbc802

Contents?: true

Size: 739 Bytes

Versions: 14

Compression:

Stored size: 739 Bytes

Contents

<%
  @path = '/etc/monit/monit.d/monit-resque_worker.conf'
%>

<% rubber_env.resque_workers.each_with_index do |worker, i| %>
  <%
    PIDFILE = "#{RUBBER_ROOT}/tmp/pids/resque_worker_#{i}.pid"

    start_program = "/usr/bin/sudo -H -u #{rubber_env.app_user} bash -l -c 'cd #{RUBBER_ROOT} && ./script/resque_worker_management.rb start #{i}'"
    stop_program  = "/usr/bin/sudo -H -u #{rubber_env.app_user} bash -l -c 'cd #{RUBBER_ROOT} && ./script/resque_worker_management.rb stop #{i} TERM'"
  %>

  check process resque_worker_<%= i %> with pidfile <%= PIDFILE %>
    group resque_worker
    start program = "<%= start_program %>"
    stop program = "<%= stop_program %>"

    if totalmem > 350.0 MB for 15 cycles then restart
<% end %>

Version data entries

14 entries across 7 versions & 3 rubygems

Version Path
rubber-jcarnegie-0.0.1 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-jcarnegie-0.0.1 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.9.1 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.9.1 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.9.0 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.9.0 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.8.0 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.8.0 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
nogara-rubber-1.7.2 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
nogara-rubber-1.7.2 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.7.2 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.7.2 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.7.1 lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
rubber-1.7.1 generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf