Skip to content

Commit

Permalink
Merge pull request #5859 from Martchus/restart-workers-gracefully
Browse files Browse the repository at this point in the history
Stop openQA worker processes gracefully to avoid 5xx responses
  • Loading branch information
mergify[bot] authored Aug 15, 2024
2 parents 9a04e5e + d4b9b56 commit 68152d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/openqa-webui-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function start_service {
# wait until openQA is ready to accept requests by waiting for its PID file
while [[ ! -e $pid_file ]] && [[ -e /proc/$pid ]]; do sleep 1; done

# terminate a previously started openQA instance
[[ $pid_last ]] && kill -s TERM "$pid_last"
# terminate the previously started openQA instance gracefully
[[ $pid_last ]] && kill -s SIGQUIT "$pid_last"

# keep running until openQA terminates (with the "wait"-builtin so bash can handle SIGHUP)
wait "$pid"
Expand Down

0 comments on commit 68152d9

Please sign in to comment.