diff --git a/rootfs/etc/services.d/scrutiny/run b/rootfs/etc/services.d/scrutiny/run index 3b88505..38b3c9d 100644 --- a/rootfs/etc/services.d/scrutiny/run +++ b/rootfs/etc/services.d/scrutiny/run @@ -1,5 +1,7 @@ #!/usr/bin/with-contenv bash -echo "starting scrutiny" +echo "waiting for influxdb" +until $(curl --output /dev/null --silent --head --fail http://localhost:8086/health); do echo "not ready"; done +echo "starting scrutiny" scrutiny start