From 41f6416d7c02d5991f9b22aef0432e65fddd671d Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Mon, 30 Jan 2017 14:29:18 -0800 Subject: [PATCH] Let's wait for the NGINX pid only, so we don't wait on cron --- scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"