better message for what's services we're currently waiting for.
This commit is contained in:
@@ -7,7 +7,7 @@ s6-svwait -u /var/run/s6/services/scrutiny
|
|||||||
s6-svc -O /var/run/s6/services/collector-once
|
s6-svc -O /var/run/s6/services/collector-once
|
||||||
|
|
||||||
# wait until scrutiny is "Ready"
|
# 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"
|
echo "starting scrutiny collector"
|
||||||
/scrutiny/bin/scrutiny-collector-metrics run
|
/scrutiny/bin/scrutiny-collector-metrics run
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
echo "waiting for influxdb"
|
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"
|
echo "starting scrutiny"
|
||||||
scrutiny start
|
scrutiny start
|
||||||
|
|||||||
Reference in New Issue
Block a user