diff --git a/app/docker-entrypoint.sh b/app/docker-entrypoint.sh index 8862e77..0acaa05 100644 --- a/app/docker-entrypoint.sh +++ b/app/docker-entrypoint.sh @@ -16,7 +16,9 @@ echo "Getting PPM ready:" trapIt() { "$@" & pid="$!" - trap 'kill -INT $pid' INT TERM + for SGNL in INT TERM CHLD USR1; do + trap "kill -$SGNL $pid" "$SGNL"; + done while kill -0 $pid >/dev/null 2>&1; do wait $pid ec="$?"