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