Let's wait for the NGINX pid only, so we don't wait on cron

This commit is contained in:
Elliot Saba 2017-01-30 14:29:18 -08:00
parent 252044581c
commit 41f6416d7c
1 changed files with 1 additions and 1 deletions

View File

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