better message for what's services we're currently waiting for.

pull/222/head
Jason Kulatunga 2 years ago
parent 8ea194b6ba
commit 87ba8ff632

@ -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

@ -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

Loading…
Cancel
Save