Sha256: 624bc426245469bcd157e8311249a2af7e19aa551c95cc53e23f23d152dcd807

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

<%
  @path = '/etc/monit/monit.d/monit-sidekiq.conf'
  start_program = "/usr/bin/sudo -H -u #{rubber_env.app_user} /bin/bash -l -c 'cd #{Rubber.root} ; nohup ./bin/sidekiq -e #{Rubber.env} -C #{Rubber.root}/config/sidekiq.yml -P #{Rubber.root}/tmp/pids/sidekiq.pid >> #{Rubber.root}/log/sidekiq.log 2>&1 &'"
  stop_program  = "/usr/bin/sudo -H -u #{rubber_env.app_user} /bin/bash -l -c 'cd #{Rubber.root} && if [ -f #{Rubber.root}/tmp/pids/sidekiq.pid ]; then ./bin/sidekiqctl stop #{Rubber.root}/tmp/pids/sidekiq.pid 60 ; fi'"
%>

check process sidekiq with pidfile <%= Rubber.root %>/tmp/pids/sidekiq.pid
  group selenium_grid_hub
  start program = "<%= start_program %>"
  stop program = "<%= stop_program %>"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubber-2.2.1 templates/sidekiq/config/rubber/role/sidekiq/monit-sidekiq.conf
rubber-2.2.0 templates/sidekiq/config/rubber/role/sidekiq/monit-sidekiq.conf