提交 85123076 编写于 作者: J Jacob Vosmaer

Use sidekiq restart rake task in init script

上级 97f124b3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册