Sha256: c987e6fad162a129d927d50c55c95f48bd0f5934c6ed8678e2d964f042ce8cfd

Contents?: true

Size: 715 Bytes

Versions: 11

Compression:

Stored size: 715 Bytes

Contents

# Monit configuration for Sidekiq :  <%= fetch(:application) %>
<% processes_pids.each_with_index do |pid_file, idx| %>
check process <%= sidekiq_service_name(idx) %>
  with pidfile "<%= pid_file %>"
  start program = "/usr/bin/sudo -u <%= @role.user %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiq  -P <%= pid_file  %>'" with timeout 30 seconds
  stop program = "/usr/bin/sudo -u <%= @role.user %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiqctl stop <%= pid_file %>'" with timeout <%= fetch(:sidekiq_timeout).to_i + 10  %> seconds
  group <%= fetch(:sidekiq_monit_group, fetch(:application)) %>-sidekiq

<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
capistrano-sidekiq-0.3.5 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.3.4 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.3.3 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.3.2 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.3.1 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.3.0 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.2.9 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.2.8 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.2.7 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.2.6 lib/capistrano/templates/sidekiq_monit.conf.erb
capistrano-sidekiq-0.2.5 lib/capistrano/templates/sidekiq_monit.conf.erb