diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 49d879b..73d38d1 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -20,4 +20,4 @@ export NGINX_PID=$! # Run `cron -f &` so that it's a background job owned by bash and then `wait`. # This allows SIGINT (e.g. CTRL-C) to kill cron gracefully, due to our `trap`. cron -f & -wait +wait "$NGINX_PID"