From 02e7bdeb138a6325995885c2fff27960d6daa71d Mon Sep 17 00:00:00 2001 From: Ruben d'Arco Date: Thu, 29 Aug 2013 20:39:59 +0200 Subject: [PATCH] pid file with pdns_ prefix. --- pdns/pdns_recursor.cc | 2 +- regression-tests/recursor-test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 4436b7e63..5e4fbf13a 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1789,7 +1789,7 @@ int serviceMain(int argc, char*argv[]) break; } - s_pidfname=::arg()["socket-dir"]+"/"+s_programname+".pid"; + s_pidfname=::arg()["socket-dir"]+"/pdns_"+s_programname+".pid"; if(!s_pidfname.empty()) unlink(s_pidfname.c_str()); // remove possible old pid file diff --git a/regression-tests/recursor-test b/regression-tests/recursor-test index e7f8eee14..79a1d8710 100755 --- a/regression-tests/recursor-test +++ b/regression-tests/recursor-test @@ -7,7 +7,7 @@ limit=$2 ../pdns/pdns_recursor --daemon=no --local-port=$port --socket-dir=./ --trace=fail --config-dir=. --query-local-address6=:: > recursor.log 2>&1 & sleep 3 ../pdns/dnsbulktest -qe 127.0.0.1 $port $limit < top-1m.csv > bulktest.results -kill $(cat recursor.pid) +kill $(cat pdns_recursor.pid) . ./bulktest.results -- 2.49.0