Let's wait for the NGINX pid only, so we don't wait on cron
This commit is contained in:
parent
252044581c
commit
41f6416d7c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue