From 85123076141beea0e79495b240d86c3bbdd92fd8 Mon Sep 17 00:00:00 2001
From: Jacob Vosmaer <contact@jacobvosmaer.nl>
Date: Wed, 9 Oct 2013 16:49:01 +0200
Subject: [PATCH] Use sidekiq restart rake task in init script

---
 lib/support/init.d/gitlab | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab
index 6aff7b5a8f9..f157d71b14f 100755
--- a/lib/support/init.d/gitlab
+++ b/lib/support/init.d/gitlab
@@ -218,9 +218,7 @@ reload(){
   kill -USR2 "$wpid"
   echo "Done."
   echo "Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
-  RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:stop
-  echo "Starting Sidekiq..."
-  RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:start
+  RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:restart
   # Waiting 2 seconds for sidekiq to write it.
   sleep 2
   status
-- 
GitLab