Commit 78b3fb769c9ad1c0283a344a572caa01f4389213

Authored by Jacob Vosmaer
1 parent 1a6ba7e6

Run stopping commands in the foreground

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/support/init.d/gitlab
... ... @@ -151,7 +151,7 @@ stop() {
151 151 exit_if_not_running
152 152 # If the Unicorn web server is running, tell it to stop;
153 153 if [ "$web_status" = "0" ]; then
154   - kill -QUIT "$wpid" &
  154 + kill -QUIT "$wpid"
155 155 echo "Stopping the GitLab Unicorn web server..."
156 156 stopping=true
157 157 else
... ... @@ -160,7 +160,7 @@ stop() {
160 160 # And do the same thing for the Sidekiq.
161 161 if [ "$sidekiq_status" = "0" ]; then
162 162 printf "Stopping Sidekiq job dispatcher."
163   - RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:stop &
  163 + RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:stop
164 164 stopping=true
165 165 else
166 166 echo "The Sidekiq was not running, must have run out of breath."
... ...