diff --git a/rootfs/etc/services.d/collector-once/run b/rootfs/etc/services.d/collector-once/run index 2fc2dc2..02ac223 100644 --- a/rootfs/etc/services.d/collector-once/run +++ b/rootfs/etc/services.d/collector-once/run @@ -7,7 +7,7 @@ s6-svwait -u /var/run/s6/services/scrutiny s6-svc -O /var/run/s6/services/collector-once # wait until scrutiny is "Ready" -until $(curl --output /dev/null --silent --head --fail http://localhost:8080/api/health); do echo "not ready" && sleep 5; done +until $(curl --output /dev/null --silent --head --fail http://localhost:8080/api/health); do echo "scrutiny api not ready" && sleep 5; done echo "starting scrutiny collector" /scrutiny/bin/scrutiny-collector-metrics run diff --git a/rootfs/etc/services.d/scrutiny/run b/rootfs/etc/services.d/scrutiny/run index 38b3c9d..3fac4a6 100644 --- a/rootfs/etc/services.d/scrutiny/run +++ b/rootfs/etc/services.d/scrutiny/run @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bash echo "waiting for influxdb" -until $(curl --output /dev/null --silent --head --fail http://localhost:8086/health); do echo "not ready"; done +until $(curl --output /dev/null --silent --head --fail http://localhost:8086/health); do echo "influxdb not ready" && sleep 5; done echo "starting scrutiny" scrutiny start