rpms/nsd/devel nsd.cron,1.3,1.4
Paul Wouters (pwouters)
fedora-extras-commits at redhat.com
Tue Nov 13 16:32:12 UTC 2007
Author: pwouters
Update of /cvs/extras/rpms/nsd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1059
Modified Files:
nsd.cron
Log Message:
Fix path name to nsd.db in cron job
Index: nsd.cron
===================================================================
RCS file: /cvs/extras/rpms/nsd/devel/nsd.cron,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- nsd.cron 8 Nov 2007 19:34:36 -0000 1.3
+++ nsd.cron 13 Nov 2007 16:31:39 -0000 1.4
@@ -8,12 +8,15 @@
# Ideally check if ixfr.db newer then any zones, only then do
/usr/sbin/nsdc patch > /dev/nul 2>%1
-# We try to only rebuild/reload when neccessary
-# every hour. But for hosting a lot of small zones, it is useful.
+# We try to only rebuild/reload when neccessary. If 1 zone is newer,
+# we need to rebuild the db file.
+# This might give problems with huge zones, eg TLD's, which cannot
+# complete this operation within an hour, but it should work fine for
+# most other uses.
for zonefile in `/usr/sbin/nsd-checkconf -v /etc/nsd/nsd.conf |grep zonefile: | sed "s/^.*\"\(.*\)\"/\1/"`
do
- if [ $zonefile -nt /etc/nsd/nsd.db ]
+ if [ $zonefile -nt /var/lib/nsd/nsd.db ]
then
echo "Zone $zonefile update requires nsd.db rebuild"
/usr/sbin/nsdc rebuild > /dev/nul 2>%1
More information about the fedora-extras-commits
mailing list