Skip to content

Commit

Permalink
fix: Stop all process before sending SIGTERM to supervisor. (#2422)
Browse files Browse the repository at this point in the history
Issue detail: #2421
  • Loading branch information
junorz committed Dec 9, 2021
1 parent 82576f2 commit 3778a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ case ${1} in
/usr/bin/supervisord -nc /etc/supervisor/supervisord.conf &
SUPERVISOR_PID=$!
migrate_database
/usr/bin/supervisorctl stop all
kill -15 $SUPERVISOR_PID
if ps h -p $SUPERVISOR_PID > /dev/null ; then
wait $SUPERVISOR_PID || true
Expand Down

0 comments on commit 3778a7a

Please sign in to comment.