Sha256: 8935b1e17858b8f1a1f4c927c281d0f86839c7d3f62394a42911c351f6041c1e

Contents?: true

Size: 1.57 KB

Versions: 28

Compression:

Stored size: 1.57 KB

Contents

# an example Monit configuration file for delayed_job running multiple processes
#
# To use:
# 1. copy to /var/www/apps/{app_name}/shared/delayed_job.monitrc
# 2. replace {app_name} as appropriate
#    you might also need to change the program strings to
#           "/bin/su - {username} -c '/usr/bin/env ...'"
#    to load your shell environment.
#
# 3. add this to your /etc/monit/monitrc
#
#   include /var/www/apps/{app_name}/shared/delayed_job.monitrc
#
# The processes are grouped so that monit can act on them as a whole, e.g.
#
#   monit -g delayed_job restart

check process delayed_job_0
  with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.0.pid
  start program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job start -i 0"
  stop program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job stop -i 0"
  group delayed_job

check process delayed_job_1
  with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.1.pid
  start program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job start -i 1"
  stop program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job stop -i 1"
  group delayed_job

check process delayed_job_2
  with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.2.pid
  start program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job start -i 2"
  stop program = "/usr/bin/env RAILS_ENV=production /var/www/apps/{app_name}/current/bin/delayed_job stop -i 2"
  group delayed_job

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
delayed_job-4.1.13 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.12 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.12.rc1 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.11 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.10 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.9 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.8 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.8.beta1 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.7 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.7.beta1 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.6 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.6.beta1 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.5 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.4 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.3 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.2 contrib/delayed_job_rails_4_multiple.monitrc
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/delayed_job-4.1.1/contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.1 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job-4.1.0 contrib/delayed_job_rails_4_multiple.monitrc
delayed_job_tgmerritt-4.0.7 contrib/delayed_job_rails_4_multiple.monitrc