]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
cat recursor.log before trying to kill rec, if the kill fails
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 16 Dec 2020 07:38:43 +0000 (08:38 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 7 Jan 2021 11:48:06 +0000 (12:48 +0100)
(because rec died) we at least have the log.

regression-tests/recursor-test

index 280d578a0258fb011a19d056a1b97ff6b457fe68..b59645dc5f1d5a877485ad4c3fa9059d4571c6e1 100755 (executable)
@@ -50,14 +50,13 @@ ${RECCONTROL} --socket-dir=. --config-dir=. get-all
 echo
 echo === Third run with limit=$limit threads=$threads mthreads=$mthreads shards=$shards ===
 ${DNSBULKTEST} --www=false -qe 127.0.0.1 $port $limit < ${CSV} > bulktest.results
-kill -USR1 $(cat pdns_recursor.pid)
-${RECCONTROL} --socket-dir=. --config-dir=. get-all
-
-sleep 1
 echo
 echo "=== RECURSOR LOG ==="
 cat recursor.log
 echo "=== END RECURSOR LOG ==="
+kill -USR1 $(cat pdns_recursor.pid)
+${RECCONTROL} --socket-dir=. --config-dir=. get-all
+sleep 1
 kill $(cat pdns_recursor.pid) 
 sleep 5