fix legacy test

use rndc rather than signals to stop the server
This commit is contained in:
Evan Hunt 2019-01-23 22:08:43 -08:00
parent f1906e8ea3
commit 4e597364a6
2 changed files with 10 additions and 3 deletions

View file

@ -20,6 +20,15 @@ options {
recursion yes;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-sha256;
};
controls {
inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
};
zone "." {
type master;
file "root.db";

View file

@ -144,10 +144,8 @@ status=`expr $status + $ret`
if $SHELL ../testcrypto.sh > /dev/null 2>&1
then
$PERL $SYSTEMTESTTOP/stop.pl legacy ns1
$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} legacy ns1
copy_setports ns1/named2.conf.in ns1/named.conf
$PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} legacy ns1
n=`expr $n + 1`