From dc4746eae9f111e99538a3217df053eb16950e11 Mon Sep 17 00:00:00 2001
From: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Date: Thu, 8 Mar 2018 21:31:06 +0100
Subject: [PATCH] fff-hoods: Do not run configurehood and nodewatcher at the
 same time
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

nodewatcher and configurehood have both been run with */5 in micrond.

This may lead to nodewatcher accessing information just being
changed by configurehood. To prevent this, we just change the
start of configurehood, as this has no known disadvantages.

A change of the nodewatcher start would also solve the problem,
but nodewatcher is synchronized to the alfred-master and the
Monitoring.

Fixes #96.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
---
 src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
index 39e800e3..c2f56bba 100644
--- a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
+++ b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
@@ -1 +1 @@
-*/5 * * * * [ -f /tmp/started ] && /usr/sbin/configurehood
+3-59/5 * * * * [ -f /tmp/started ] && /usr/sbin/configurehood
-- 
GitLab