Sha256: a64b29494a849139400b0f6d42f44467ce591f3a5cb571a2fbc31764cb4e6a7d

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

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

<% if rubber_env.num_delayed_job_workers == 1 %>
check process delayed_job
  with pidfile <%= Rubber.root %>/tmp/pids/delayed_job.pid
  start program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> /bin/bash -l -c 'RAILS_ENV=<%= Rubber.env %> <%= Rubber.root %>/script/delayed_job start'"
  stop program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> /bin/bash -l -c 'RAILS_ENV=<%= Rubber.env %> <%= Rubber.root %>/script/delayed_job stop'"
<% else %>
<% rubber_env.num_delayed_job_workers.times do |id| %>
check process delayed_job_<%= id %>
  with pidfile <%= Rubber.root %>/tmp/pids/delayed_job.<%= id %>.pid
  start program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> /bin/bash -l -c 'RAILS_ENV=<%= Rubber.env %> <%= Rubber.root %>/script/delayed_job start -i <%= id %>'"
  stop program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> /bin/bash -l -c 'RAILS_ENV=<%= Rubber.env %> <%= Rubber.root %>/script/delayed_job stop -i <%= id %>'"
  group delayed_job
<% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubber-2.9.0 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.8.1 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.8.0 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.5 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.4 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.3 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.2 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.1 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf
rubber-2.7.0 templates/delayed_job/config/rubber/role/delayed_job/monit-delayed_job.conf