]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Try a couple of times asking rec to quit
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Oct 2023 13:20:40 +0000 (15:20 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Oct 2023 13:56:41 +0000 (15:56 +0200)
regression-tests.recursor/YAMLConversion/command

index 1c759206c11b4ffa02ee7cbae8ee54f7446e21ca..330dd0fe96f53efd6388d31029aaaba99bb33a08 100755 (executable)
@@ -18,8 +18,16 @@ webservice:
 EOF
 ${PDNSRECURSOR} --config-dir=. &
 
+set +e
+for in in 0 1 2 3 4 5 6 7 8 9; do
 sleep 1
 ${RECCONTROL} --config-dir=. quit-nicely
+if [ $? = 0 ]; then
+  break
+fi
+done
+set -e
+
 diff -u apizones.expected $d2/apizones
 diff -u allow-from.yml.expected $d2/allow-from.yml
 diff -u allow-notify-from.yml.expected $d2/allow-notify-from.yml