Commit 78b3fb769c9ad1c0283a344a572caa01f4389213
1 parent
1a6ba7e6
Exists in
master
and in
4 other branches
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,7 +151,7 @@ stop() { | ||
| 151 | exit_if_not_running | 151 | exit_if_not_running |
| 152 | # If the Unicorn web server is running, tell it to stop; | 152 | # If the Unicorn web server is running, tell it to stop; |
| 153 | if [ "$web_status" = "0" ]; then | 153 | if [ "$web_status" = "0" ]; then |
| 154 | - kill -QUIT "$wpid" & | 154 | + kill -QUIT "$wpid" |
| 155 | echo "Stopping the GitLab Unicorn web server..." | 155 | echo "Stopping the GitLab Unicorn web server..." |
| 156 | stopping=true | 156 | stopping=true |
| 157 | else | 157 | else |
| @@ -160,7 +160,7 @@ stop() { | @@ -160,7 +160,7 @@ stop() { | ||
| 160 | # And do the same thing for the Sidekiq. | 160 | # And do the same thing for the Sidekiq. |
| 161 | if [ "$sidekiq_status" = "0" ]; then | 161 | if [ "$sidekiq_status" = "0" ]; then |
| 162 | printf "Stopping Sidekiq job dispatcher." | 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 | stopping=true | 164 | stopping=true |
| 165 | else | 165 | else |
| 166 | echo "The Sidekiq was not running, must have run out of breath." | 166 | echo "The Sidekiq was not running, must have run out of breath." |