From eaa2aabd34afcb6adef783988e542285084512d8 Mon Sep 17 00:00:00 2001 From: Phong Si Date: Thu, 25 Aug 2016 15:34:26 -0400 Subject: [PATCH] fix: Reload monit after restarting services --- libraries/drivers_worker_sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/drivers_worker_sidekiq.rb b/libraries/drivers_worker_sidekiq.rb index 090895a7..5af296bd 100644 --- a/libraries/drivers_worker_sidekiq.rb +++ b/libraries/drivers_worker_sidekiq.rb @@ -12,12 +12,12 @@ def configure(context) end def after_deploy(context) - context.execute 'monit reload' (1..process_count).each do |process_number| context.execute "monit restart sidekiq_#{app['shortname']}-#{process_number}" do retries 3 end end + context.execute 'monit reload' end alias after_undeploy after_deploy