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-2.5.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.5 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.4.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.4.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.4.0 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.3.3 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.3.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.3.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.3.0 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.2.3 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.2.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.2.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.2.0 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.1.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.1.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.1.0 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.0.4 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.0.3 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.0.2 ansible/roles/delayed_job/templates/delayed-job-monit-rc
subspace-2.0.1 ansible/roles/delayed_job/templates/delayed-job-monit-rc