Skip to content

Commit 8512307

Browse files
committed
Use sidekiq restart rake task in init script
1 parent 97f124b commit 8512307

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/support/init.d/gitlab

+1-3
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@ reload(){
218218
kill -USR2 "$wpid"
219219
echo "Done."
220220
echo "Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
221-
RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:stop
222-
echo "Starting Sidekiq..."
223-
RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:start
221+
RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:restart
224222
# Waiting 2 seconds for sidekiq to write it.
225223
sleep 2
226224
status

0 commit comments

Comments
 (0)