diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index ab11c11..919281e 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -2,9 +2,12 @@ set -x term_handler() { + $USER_COMMAND_EXIT exit 143; # 128 + 15 -- SIGTERM } trap 'kill ${!}; term_handler' SIGTERM +$USER_COMMAND_INIT & + tail -f /dev/null & wait ${!}