Commit 85123076141beea0e79495b240d86c3bbdd92fd8
1 parent
97f124b3
Exists in
master
and in
4 other branches
Use sidekiq restart rake task in init script
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
lib/support/init.d/gitlab
... | ... | @@ -218,9 +218,7 @@ reload(){ |
218 | 218 | kill -USR2 "$wpid" |
219 | 219 | echo "Done." |
220 | 220 | 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 | |
224 | 222 | # Waiting 2 seconds for sidekiq to write it. |
225 | 223 | sleep 2 |
226 | 224 | status | ... | ... |