nsd-dynipwatch: touch watchfile before inotify'ing
[shutils.git] / nsd / nsd-dynipwatch
index bfdb8407bad273f34f3cf78b7d3e5038be28a69d..bd4b1449ff78df362c9692967412e308831dfbcd 100755 (executable)
@@ -48,6 +48,7 @@ function setSerialInZonefile # <zonefile> <serial>
 
 function run()
 {
+       touch ${watchfile}
        while true; do
                inotifywait -q -t 30 -e close_write "${watchfile}"  > /dev/null
                ret=$?