Change how the bash script is started.

By adding `exec` to the entrypoint bash script for the application, we can trap an EXIT from the script and execute our custom `on_exit` method with checks if the application process is busy before terminating, waiting up to 10 seconds. We don't need to trap `TERM` so that's been removed again.

Written by:
@servingupaces
@tlwr
This commit is contained in:
Rebecca Law
2019-10-31 16:41:16 +00:00
parent c35aca25e0
commit fe18512dd2
2 changed files with 14 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ echo "Run script pid: $$"
check_params
trap "on_exit" EXIT TERM
trap "on_exit" EXIT
configure_aws_logs