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