From 8462d21e1404b2cfb948e981b07bb299c4ad7137 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 29 Apr 2022 22:16:56 -0700 Subject: [PATCH] waiting for influxdb before starting scrutiny app. --- rootfs/etc/services.d/scrutiny/run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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