Merge pull request #1772 from lordvlad/patch-1

fix bootloop for rare race condition between kill and wait
This commit is contained in:
Niclas Mietz 2018-11-22 06:11:35 +01:00 committed by GitHub
commit 5aa9f6cff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
;;