mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Merge pull request #1772 from lordvlad/patch-1
fix bootloop for rare race condition between kill and wait
This commit is contained in:
commit
5aa9f6cff8
@ -19,7 +19,7 @@ case ${1} in
|
||||
SUPERVISOR_PID=$!
|
||||
migrate_database
|
||||
kill -15 $SUPERVISOR_PID
|
||||
ps h -p $SUPERVISOR_PID > /dev/null && wait $SUPERVISOR_PID
|
||||
ps h -p $SUPERVISOR_PID > /dev/null && wait $SUPERVISOR_PID || true
|
||||
rm -rf /var/run/supervisor.sock
|
||||
exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user