Sha256: 8bcd292ef2c924e454f1113840a5931f0fe4e8fd0e3e36c54b0a7b1ff74eb6f1

Contents?: true

Size: 884 Bytes

Versions: 5

Compression:

Stored size: 884 Bytes

Contents

# Monit configuration for Sidekiq
# Service name: <%= sidekiq_service_name %>
#
check process <%= sidekiq_service_name %>
  matching 'sidekiq .* <%= fetch(:application) %>'
  start program = "/bin/su - <%= sidekiq_user(role) %> -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiq -e <%= fetch(:sidekiq_env) %> <%= sidekiq_config %> <%= sidekiq_concurrency %> <%= sidekiq_require %> <%= sidekiq_queues %> <%= sidekiq_logfile ? ">> #{sidekiq_logfile} 2>&1" : nil %> &'" with timeout <%= fetch(:sidekiq_timeout).to_i + 10 %> seconds
  stop program = "/bin/su - <%= sidekiq_user(role) %> -c 'ps ax | grep "<%= "sidekiq .* #{fetch(:application)}" %>" | grep -v grep | awk "{print \$1}" | xargs --no-run-if-empty kill'" with timeout <%= fetch(:sidekiq_timeout).to_i + 10  %> seconds
  group <%= fetch(:sidekiq_monit_group) || fetch(:application) %>-sidekiq

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-sidekiq-3.0.0 lib/generators/capistrano/sidekiq/monit/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-3.0.0.alpha.2 lib/generators/capistrano/sidekiq/monit/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-2.3.1 lib/generators/capistrano/sidekiq/monit/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-3.0.0.alpha.1 lib/generators/capistrano/sidekiq/monit/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-2.3.0 lib/generators/capistrano/sidekiq/monit/templates/sidekiq_monit.conf.erb