rpms/nsd/EL-5 nsd.cron,NONE,1.1
Paul Wouters
pwouters at fedoraproject.org
Fri Apr 10 17:07:57 UTC 2009
- Previous message (by thread): rpms/shntool/devel import.log, NONE, 1.1 shntool.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/nsd/F-9 nsd.cron,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pwouters
Update of /cvs/extras/rpms/nsd/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31861/EL-5
Added Files:
nsd.cron
Log Message:
Fix the /dev/nul (one l) occurances
--- NEW FILE nsd.cron ---
#!/bin/sh
# Paul Wouters <paul at xelerance.com>
# This folds back zone updates, dynamic updates, etc that nsd records
# in the ixfr.db and nsd.db files back into the zone files or visa
# versa
# Ideally check if ixfr.db newer then any zones, only then do
/usr/sbin/nsdc patch > /dev/null 2>%1
# 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 /var/lib/nsd/nsd.db ]
then
echo "Zone $zonefile update requires nsd.db rebuild"
/usr/sbin/nsdc rebuild > /dev/null 2>%1
/usr/sbin/nsdc reload > /dev/null 2>%1
break
fi
done
# nsd checks the serial in notify requests, so its better to send an
# occasional redundant notify, then to miss it.
# According to the nsd team, this is no longer neccessary
# /usr/sbin/nsdc notify > /dev/null 2>%1
- Previous message (by thread): rpms/shntool/devel import.log, NONE, 1.1 shntool.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/nsd/F-9 nsd.cron,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list