nsd running as slave

Stephane Bortzmeyer bortzmeyer at nic.fr
Thu Jul 10 10:21:15 UTC 2003

On Thu, Jul 10, 2003 at 10:49:46AM +0200,
 Ted Lindgreen <ted at NLnetLabs.nl> wrote 
 a message of 28 lines which said:

> The sanity check is wise to prevent vulnaribility for DoSsing
> by a notify flood. I guess a simple timer (ignore new notifies
> for xx seconds/minutes after having forked+execed) would suffice.

We use a small shell script as a wrapper for "nsdc update".




trap  "rm -f $lockfile; exit 1" 1 2 3 15 

if [ -e "${lockfile}" ]  
   echo "Another update/rebuild is running, cancelling (if it is an error, delete ${lockfile})" 
   exit 0 
# Small race condition here
echo $$ > "${lockfile}" 

nsdc update 
sleep 600 # Let the machine rest
rm -f "${lockfile}"  

More information about the nsd-users mailing list