diff --git a/scrutiny/rootfs/run.sh b/scrutiny/rootfs/run.sh index e947d41f8..926358193 100644 --- a/scrutiny/rootfs/run.sh +++ b/scrutiny/rootfs/run.sh @@ -1,5 +1,8 @@ #!/usr/bin/with-contenv bashio -sleep 60 + +# wait for scrutiny to load +bashio::net.wait_for 8000 + scrutiny-collector-metrics run >/dev/null && bashio::log.info "Local Devices Added" || bashio::log.error "Local Devices Not Added" #|| bashio::log.error "Privileged mode is disabled, the addon will stop" # ; \ s6-svscanctl -t /var/run/s6/services