Sha256: cfcf01a72456528c106671a611722a39bf7c390ac2a6600fd3db8f28b7f0a66b

Contents?: true

Size: 981 Bytes

Versions: 62

Compression:

Stored size: 981 Bytes

Contents

# an example Monit configuration file for delayed_job
# See: http://stackoverflow.com/questions/1226302/how-to-monitor-delayedjob-with-monit/1285611
#
# To use:
# 1. copy to /var/www/apps/{app_name}/shared/delayed_job.monitrc
# 2. replace {app_name} as appropriate
# 3. add this to your /etc/monit/monitrc
#
#   include /var/www/apps/{app_name}/shared/delayed_job.monitrc

{% for queue in job_queues %}
check process delayed_job_{{queue}}{{loop.index}}
  with pidfile /u/apps/{{project_name}}/shared/tmp/pids/delayed_job.{{queue}}{{loop.index}}.pid
  start program = "/bin/su - deploy -c 'cd /u/apps/{{project_name}}/current; RAILS_ENV={{rails_env}} bundle exec {{delayed_job_command}} --identifier={{queue}}{{loop.index}} --queue={{queue}} start'"
  stop program  = "/bin/su - deploy -c 'cd /u/apps/{{project_name}}/current; RAILS_ENV={{rails_env}} bundle exec {{delayed_job_command}} --identifier={{queue}}{{loop.index}} --queue={{queue}} stop'"
  group delayed_job
{% endfor %}

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
subspace-3.0.12 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.11 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.10 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.9 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.6 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.5 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.4 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.3 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.0 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.10 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-3.0.0.rc1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.9 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.8 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.7 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.6 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.5 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.4 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.3 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc