From c4070818c6c1b2fe14edf739ed79d088a835caab Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 10 Nov 2012 20:21:48 +0100 Subject: [PATCH] nsd-dynipwatch: touch watchfile before inotify'ing Otherwise cpu load increases significantly as inotifywait terminates immediately. --- nsd/nsd-dynipwatch | 1 + 1 file changed, 1 insertion(+) diff --git a/nsd/nsd-dynipwatch b/nsd/nsd-dynipwatch index bfdb840..bd4b144 100755 --- a/nsd/nsd-dynipwatch +++ b/nsd/nsd-dynipwatch @@ -48,6 +48,7 @@ function setSerialInZonefile # function run() { + touch ${watchfile} while true; do inotifywait -q -t 30 -e close_write "${watchfile}" > /dev/null ret=$? -- 2.30.2