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
# 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
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
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