From patchwork Mon Sep 10 19:48:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/4] fff-nodewatcher: Start only when alfred is running From: Robert Langhammer X-Patchwork-Id: 928 Message-Id: <20180910194820.16700-4-rlanghammer@web.de> To: franken-dev@freifunk.net Date: Mon, 10 Sep 2018 21:48:19 +0200 Signed-off-by: Robert Langhammer --- src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher b/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher index c0ae57b..02e36c1 100755 --- a/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher +++ b/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher @@ -4,7 +4,8 @@ SCRIPT_VERSION="48" -test -f /tmp/started || exit +# only start when alfred is running +pidof alfred > /dev/null || exit #Get the configuration from the uci configuration file #If it does not exists, then get it from a normal bash file with variables.