From 633538a917a4221ae7f1df86e30fb348e7157416 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 15 Feb 2025 11:21:53 +0100 Subject: [PATCH] Trap sigterm --- .templates/ha_entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index cac109765..cbd7d1544 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -84,7 +84,9 @@ if [ "$$" -eq 1 ]; then exit 0 } trap terminate SIGTERM - while :; do sleep infinity & wait $!; done + while :; do + sleep 1 + done else echo " " echo -e "\033[0;32mStarting the upstream container\033[0m"