On Wed, 26 Jun 2002 10:26:40 -0400 (EDT) Chris Steele wrote:
+------------------
| Does anyone have any suggestions on a way to go about doing a restart of
| the name server? rndc claims that restart is not implemented yet. Reload
| works wonderfully, but I want to clear out everything at once and just
| reload the whole thing (aka restart).
|
| Any suggestions would be appreciated. I am looking for a way to automate
| this rather than manually doing the steps.
+------------------
In my init.d script:
restart)
/etc/init.d/named stop
kill -0 `cat /var/domain/named.pid`
while test $? \!= 1
do
sleep 2;
kill -0 `cat /var/domain/named.pid`
done
/etc/init.d/named start
ps -ef | grep named | grep -v grep
;;
YMMV
--
|