function run()
{
+ touch ${watchfile}
while true; do
inotifywait -q -t 30 -e close_write "${watchfile}" > /dev/null
ret=$?
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