]> andersk Git - moira.git/commitdiff
punt consistency check that didn't work updating multiple servers
authormar <mar>
Tue, 27 Feb 1990 18:21:22 +0000 (18:21 +0000)
committermar <mar>
Tue, 27 Feb 1990 18:21:22 +0000 (18:21 +0000)
gen/hesiod.sh

index d5fd9761de5d9ceb1e2671dc84ee5901a4f8b447..7eb14b4e0dfb92dcae1af58d9f3e56eeb24e4c8b 100644 (file)
@@ -18,8 +18,6 @@ set TARFILE=/tmp/hesiod.out
 set SRC_DIR=/etc/athena/_nameserver
 # Directory into which we will put the final product
 set DEST_DIR=/etc/athena/nameserver
-# Files to verify nameserver loaded-if empty, no check is done
-set CHECKFILES=""
 
 # Create the destination directory if it doesn't exist
 if (! -d $DEST_DIR) then
@@ -71,7 +69,9 @@ end
 rm -f /etc/named.pid
 
 # Restart named.
-(unlimit; /etc/named)
+(unlimit; /etc/named&)
+sleep 5
+mv /etc/named.pid /etc/named.pid.restart
 
 # This timeout is implemented by having the shell check TIMEOUT times
 # for the existance of /etc/named.pid and to sleep INTERVAL seconds
@@ -89,19 +89,6 @@ end
 # Did it time out?
 if ($i == $TIMEOUT) exit $SMS_NAMED
 
-# Verify that the nameserver is answering queries for the new data
-cd $DEST_DIR
-foreach f ( $CHECKFILES )
-        set temp=`tac $f | egrep -v '^;' | head -1`
-        set hes=`/bin/echo $temp | awk '{print $1}'`
-        set ent=`echo $hes | rev | sed 's/\(.*\)\.\(.*\)/\2/' | rev`
-        set type=`echo $hes | rev | sed 's/\(.*\)\.\(.*\)/\1/' | rev`
-        hesinfo $ent $type > /dev/null
-       if ($status == 1) then
-                exit $SMS_HESFILE
-        endif
-end
-
 # Clean up!
 /bin/rm -f $TARFILE
 /bin/rm -f $0
This page took 0.03896 seconds and 5 git commands to generate.