From b31f60ddf3b06fd21d4a02e4bf5727988bcb4b41 Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Wed, 22 Jul 2026 10:45:27 +0000 Subject: [PATCH] composte-hermes.yml aktualisiert --- composte-hermes.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/composte-hermes.yml b/composte-hermes.yml index 3d86df8..12589cc 100644 --- a/composte-hermes.yml +++ b/composte-hermes.yml @@ -67,14 +67,20 @@ services: - | set -e hermes-agent gateway run & - GATEWAY_PID=$! - until curl -sf http://localhost:8642 >/dev/null 2>&1; do sleep 1; done + GATEWAY_PID=$$! + until curl -sf http://localhost:8642 >/dev/null 2>&1; do + if ! kill -0 $$GATEWAY_PID 2>/dev/null; then + echo "FEHLER: Gateway-Prozess ist abgestürzt, breche ab." + exit 1 + fi + sleep 1 + done hermes-agent dashboard --host 0.0.0.0 --no-open & - DASHBOARD_PID=$! - wait -n $GATEWAY_PID $DASHBOARD_PID - EXIT_CODE=$? - kill $GATEWAY_PID $DASHBOARD_PID 2>/dev/null || true - exit $EXIT_CODE + DASHBOARD_PID=$$! + wait -n $$GATEWAY_PID $$DASHBOARD_PID + EXIT_CODE=$$? + kill $$GATEWAY_PID $$DASHBOARD_PID 2>/dev/null || true + exit $$EXIT_CODE healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8642 && curl -f http://localhost:9119"] interval: 30s