diff --git a/misc/entrypoint.sh b/misc/entrypoint.sh index ce42c901..df8e4b67 100644 --- a/misc/entrypoint.sh +++ b/misc/entrypoint.sh @@ -29,8 +29,6 @@ stop_services() { fi } -echo "Services running" - # Trap SIGINT to stop services on exit trap stop_services SIGINT trap stop_services SIGTERM @@ -39,6 +37,9 @@ trap stop_services SIGTERM start_nginx start_java +echo "Services running" + + # Wait for services to exit wait $nginx_pid wait $java_pid