From: Otto Moerbeek Date: Wed, 16 Dec 2020 07:38:43 +0000 (+0100) Subject: cat recursor.log before trying to kill rec, if the kill fails X-Git-Tag: rec-4.5.0-alpha1~34^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7a1c0ce6f173566d9aaf4cceb223b3374699256;p=thirdparty%2Fpdns.git cat recursor.log before trying to kill rec, if the kill fails (because rec died) we at least have the log. --- diff --git a/regression-tests/recursor-test b/regression-tests/recursor-test index 280d578a02..b59645dc5f 100755 --- a/regression-tests/recursor-test +++ b/regression-tests/recursor-test @@ -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