]> granicus.if.org Git - pdns/commitdiff
pid file with pdns_ prefix.
authorRuben d'Arco <cyclops@prof-x.net>
Thu, 29 Aug 2013 18:39:59 +0000 (20:39 +0200)
committerRuben d'Arco <cyclops@prof-x.net>
Thu, 29 Aug 2013 18:39:59 +0000 (20:39 +0200)
pdns/pdns_recursor.cc
regression-tests/recursor-test

index 4436b7e631905c02409bf3988aeeb7ff524eb191..5e4fbf13aa13fcce3b8e3fa707a4199c90b9ff64 100644 (file)
@@ -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 
   
index e7f8eee1454c84005b18990bfd6c2c9df1e39339..79a1d8710b10f0d4f60cb4eee32767ac0ab0d472 100755 (executable)
@@ -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