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