]> andersk Git - moira.git/commitdiff
build temp dir on /site, wait for named to restart
authormar <mar>
Mon, 14 Mar 1988 15:12:12 +0000 (15:12 +0000)
committermar <mar>
Mon, 14 Mar 1988 15:12:12 +0000 (15:12 +0000)
gen/hesiod.sh

index 269b8f832b50d1d998226c79f325883796438190..a8929194280be5570f743aa5480efe993f59dfe3 100644 (file)
@@ -1,17 +1,12 @@
 #! /bin/sh
 TARFILE=/tmp/hesiod
-SRC_DIR=/etc/athena/_nameserver
+SRC_DIR=/site/_nameserver
 DEST_DIR=/etc/athena/nameserver
 if [ ! -d $SRC_DIR ]; then
        /bin/rm -f $SRC_DIR
        /bin/mkdir $SRC_DIR
        /bin/chmod 755 $SRC_DIR
 fi
-#if [ ! -d $DEST_DIR ]; then
-#      /bin/rm -f $DEST_DIR
-#      /bin/mkdir $DEST_DIR
-#      /bin/chmod 755 $DEST_DIR
-#fi
 cd $SRC_DIR
 for file in `/bin/tar tf $TARFILE`; do 
        if [ ./ = $file ]; then continue; fi
@@ -28,6 +23,19 @@ kill -KILL `/bin/cat /etc/named.pid`
 
 csh -fc "unlimit; /etc/named"
 
+while true; do
+       sleep 60
+       if [ -e /tmp/named.success ]
+               exit 0
+       fi
+       if [ -e /tmp/named.failure ]
+               exit 1
+       fi
+       if [ -e /etc/named.pid ]
+               exit 1
+       fi
+done
+
 rm -f $0
 exit
 #
This page took 0.044603 seconds and 5 git commands to generate.