From 8e535da1caebb218f43678c8fd2d62dbdf85b76b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 11 Feb 2021 16:44:53 +0100 Subject: [PATCH] Update run --- scrutiny/rootfs/etc/services.d/zzz/run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrutiny/rootfs/etc/services.d/zzz/run b/scrutiny/rootfs/etc/services.d/zzz/run index b5dd8e55f..b8f037c8c 100644 --- a/scrutiny/rootfs/etc/services.d/zzz/run +++ b/scrutiny/rootfs/etc/services.d/zzz/run @@ -16,7 +16,9 @@ fi timeout ${timeout_argument} "${timeout}" \ bash -c \ "until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \ ->/dev/null 2>&1 && bash -c "scrutiny-collector-metrics run" || echo "port $port is not available, local devices won't be available" +>/dev/null 2>&1 && bash -c "scrutiny-collector-metrics run" \ +|| { echo "port $port is not available, local devices won't be available" && s6-svscanctl -t /var/run/s6/services } + ############## # CHECK PRIV # @@ -25,3 +27,4 @@ bash -c \ ip link delete dummy0 type dummy >/dev/null \ | ip link add dummy0 type dummy >/dev/null \ || { echo "Privileged mode is disabled, the addon will stop" && s6-svscanctl -t /var/run/s6/services } +