Sha256: 666a4cfaa7dae5c37da32164cf613ba4b8104d0718f27772abed39481c33cca2
Contents?: true
Size: 905 Bytes
Versions: 9
Compression:
Stored size: 905 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}} with pidfile /u/apps/{{project_name}}/shared/tmp/pids/delayed_job.{{queue}}.pid start program = "/bin/su - deploy -c 'cd /u/apps/{{project_name}}/current; RAILS_ENV={{rails_env}} bundle exec {{delayed_job_command}} --identifier={{queue}} --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}} --queue={{queue}} stop'" {% endfor %}
Version data entries
9 entries across 9 versions & 1 rubygems