[PATCH] fff-hoods: Do not run configurehood and nodewatcher at the same time

Adrian Schmutzler mail at adrianschmutzler.de
Mo Okt 29 16:11:36 CET 2018


(Schon vor ein paar Tagen) Applied.

 

From: Fabian Bläse [mailto:fabian at blaese.de] 
Sent: Mittwoch, 13. Juni 2018 10:45
To: Adrian Schmutzler <freifunk at adrianschmutzler.de>
Cc: franken-dev <franken-dev at freifunk.net>
Subject: Re: [PATCH] fff-hoods: Do not run configurehood and nodewatcher at the same time

 

Hübsch wäre es, sollte aber nicht dazu “missbraucht” werden, Nebenläufigkeitsprobleme zu “lösen”. 
Ist aber soweit ich das sehe nicht der Fall. 

Reviewed-by: Fabian Bläse <fabian at blaese.de <mailto:fabian at blaese.de> > 

Fabian 

> On 8. Mar 2018, at 21:31, Adrian Schmutzler <freifunk at adrianschmutzler.de <mailto:freifunk at adrianschmutzler.de> > wrote: 
> 
> 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 at adrianschmutzler.de <mailto:freifunk at adrianschmutzler.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 39e800e..c2f56bb 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 
> -- 
> 2.7.4 
> 
> -- 
> franken-dev mailing list 
> franken-dev at freifunk.net <mailto:franken-dev at freifunk.net>  
> http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net 

 
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20181029/41b375e5/attachment.html>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 834 bytes
Beschreibung: nicht verfügbar
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20181029/41b375e5/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev