]> andersk Git - moira.git/commitdiff
changes for Solaris, by kcr.
authorjweiss <jweiss>
Mon, 4 Mar 1996 15:40:07 +0000 (15:40 +0000)
committerjweiss <jweiss>
Mon, 4 Mar 1996 15:40:07 +0000 (15:40 +0000)
gen/hesiod.sh

index 82e4e8c2d91886d1e57992cef1c1186b8d150ccd..1e9cdeeba156c73989dc872627f687783fae0969 100644 (file)
@@ -14,7 +14,7 @@ set MR_TARERR =       47836476
 umask 22
 
 # File that will contain the necessary information to be updated
-set TARFILE=/tmp/hesiod.out
+set TARFILE=/var/tmp/hesiod.out
 # Directory into which we will empty the tarfile
 set SRC_DIR=/etc/athena/_nameserver
 # Directory into which we will put the final product
@@ -67,8 +67,9 @@ end
 # existance as evidence that named as has been successfully restarted.
 
 # First, get statistics
-ln -s /site/named.stats /usr/tmp/named.stats
-kill -IOT `cat /etc/named.pid`
+rm -f /usr/tmp/named.stats
+ln -s /var/named.stats /usr/tmp/named.stats
+kill -6 `cat /etc/named.pid`
 sleep 1
 # Use /bin/kill because, due to a bug in some versions of csh, failure
 # of a builtin will cause the script to abort
@@ -76,9 +77,11 @@ kill -KILL `cat /etc/named.pid`
 rm -f /etc/named.pid
 
 # Restart named.
-(unlimit; /etc/named&)
-sleep 5
-mv /etc/named.pid /etc/named.pid.restart
+# mv /etc/named.pid /etc/named.pid.restart
+#(unlimit; /etc/named&)
+/etc/named
+#sleep 5
+echo named started
 
 # This timeout is implemented by having the shell check TIMEOUT times
 # for the existance of /etc/named.pid and to sleep INTERVAL seconds
@@ -92,12 +95,14 @@ while ($i < $TIMEOUT)
    if (-f /etc/named.pid) break
    @ i++
 end
-
+echo out of timeout loop
 # Did it time out?
 if ($i == $TIMEOUT) exit $MR_NAMED
-
+echo no timeout
 # Clean up!
 rm -f $TARFILE
+echo removed tarfile
 rm -f $0
+echo removed self
 
 exit 0
This page took 0.030334 seconds and 5 git commands to generate.