Moving paralleljobs to dedicated repo
[shutils.git] / nsd / nsd-dynipwatch
index bfdb8407bad273f34f3cf78b7d3e5038be28a69d..4a650b0eaf4ec7a5f3b2fa4e63f1a4513180c2ec 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=$?
@@ -68,6 +69,7 @@ function run()
                        echo " Update IP address. New serial ${serial}."
                        setAddrInZonefile "${host}" "${zonefile}" "${newip}"
                        setSerialInZonefile "${zonefile}" "${serial}"
+                       /etc/nsd3/signzone.sh sthu.org
                        nsdc rebuild && nsdc reload && nsdc notify
                fi
        done