mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
wait for 'all zones loaded' rather than 'reloading zones succeeded' which just indicates that everything kicked off ok
This commit is contained in:
parent
cb6633c11c
commit
4cb0873a0a
@ -39,8 +39,8 @@ $RNDCCMD 10.53.0.3 reload 2>&1 | sed 's/^/ns3 /' | cat_i
|
|||||||
echo_i "wait for reload"
|
echo_i "wait for reload"
|
||||||
a=0 b=0
|
a=0 b=0
|
||||||
for i in 1 2 3 4 5 6 7 8 9 0; do
|
for i in 1 2 3 4 5 6 7 8 9 0; do
|
||||||
nextpart ns2/named.run | grep "reloading zones succeeded" > /dev/null && a=1
|
nextpart ns2/named.run | grep "all zones loaded" > /dev/null && a=1
|
||||||
nextpart ns3/named.run | grep "reloading zones succeeded" > /dev/null && b=1
|
nextpart ns3/named.run | grep "all zones loaded" > /dev/null && b=1
|
||||||
[ $a -eq 1 -a $b -eq 1 ] && break
|
[ $a -eq 1 -a $b -eq 1 ] && break
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user