From affc41083e41863b25aedac7b5394b495efd2758 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:09:30 +0200 Subject: [PATCH] scrutiny-fa: remove unsupported s6 startup wait --- scrutiny_fa/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scrutiny_fa/Dockerfile b/scrutiny_fa/Dockerfile index c607c3573b..e6cd15a0d2 100644 --- a/scrutiny_fa/Dockerfile +++ b/scrutiny_fa/Dockerfile @@ -35,6 +35,12 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ COPY rootfs/ / RUN find . -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -print -exec chmod +x {} \; +# The Home Assistant entrypoint starts services directly instead of running s6. +# Scrutiny's collector already waits for the API health endpoint, so remove its s6-only wait. +RUN if grep -q 's6-svwait -u /run/service/scrutiny' /etc/services.d/collector-once/run; then \ + sed -i '\|s6-svwait -u /run/service/scrutiny|d' /etc/services.d/collector-once/run; \ + fi + # Uses /bin for compatibility purposes # hadolint ignore=DL4005 RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \ @@ -133,4 +139,4 @@ HEALTHCHECK \ --retries=5 \ --start-period=30s \ --timeout=25s \ - CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 + CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 \ No newline at end of file