mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
bmx7-dnsupdate: wait 10 secs if bmx7 ins't running
If bmx7 isn't running just yet the folder `/var/run/bmx7/json/originators` is missing and so the while loop runs non stop. Now the loop sleeps for 10 seconds if inotifywait fails. Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
This commit is contained in:
@@ -25,5 +25,5 @@ while true; do
|
||||
killall -HUP dnsmasq
|
||||
|
||||
# block until originators changes
|
||||
inotifywait -e create -e delete -q /var/run/bmx7/json/originators/
|
||||
inotifywait -e create -e delete -q /var/run/bmx7/json/originators/ || sleep 10
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user