diff --git a/entrypoint.sh b/entrypoint.sh index c846969b..3d810ef4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,7 +19,7 @@ case ${1} in SUPERVISOR_PID=$! migrate_database kill -15 $SUPERVISOR_PID - wait $SUPERVISOR_PID + ps h -p $SUPERVISOR_PID > /dev/null && wait $SUPERVISOR_PID rm -rf /var/run/supervisor.sock exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf ;;