Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2024-12-05 14:45:19 +01:00
committed by GitHub
parent a74c1b3438
commit 3e274378ae

View File

@@ -59,7 +59,7 @@ if [ "$$" -eq 1 ]; then
echo -e "\033[0;32mEverything started!\033[0m"
terminate() {
echo "Termination signal received, forwarding to subprocesses..."
# Terminate all subprocesses
if command -v pgrep &>/dev/null; then
for pid in $(pgrep -P $$); do
echo "Terminating child PID $pid"