OSDN Git Service

Use sidekiq restart rake task in init script
authorJacob Vosmaer <contact@jacobvosmaer.nl>
Wed, 9 Oct 2013 14:49:01 +0000 (16:49 +0200)
committerJacob Vosmaer <contact@jacobvosmaer.nl>
Wed, 9 Oct 2013 14:49:01 +0000 (16:49 +0200)
lib/support/init.d/gitlab

index 6aff7b5..f157d71 100755 (executable)
@@ -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