]> granicus.if.org Git - pdns/commitdiff
suggested by Maik Zumstrull, pdnssec needs --config-name to access virtual configurat...
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 6 Jan 2011 19:09:55 +0000 (19:09 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 6 Jan 2011 19:09:55 +0000 (19:09 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1820 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index bed7228453d73fe5709e8c58c647d6c9810bd5da..1a20a07452323403e003fde5708c9f2120bfe3cc 100644 (file)
@@ -39,7 +39,7 @@ void loadMainConfig(const std::string& configdir)
   
   ::arg().set("launch","Which backends to launch");
   ::arg().set("dnssec","if we should do dnssec")="true";
-  ::arg().set("config-name","Name of this virtual configuration - will rename the binary image")="";
+  ::arg().set("config-name","Name of this virtual configuration - will rename the binary image")=g_vm["config-name"].as<string>();
   ::arg().setCmd("help","Provide a helpful message");
   //::arg().laxParse(argc,argv);
 
@@ -183,6 +183,7 @@ try
     ("help,h", "produce help message")
     ("verbose,v", po::value<bool>(), "be verbose")
     ("force", "force an action")
+    ("config-name", po::value<string>(), "virtual configuration name")
     ("config-dir", po::value<string>()->default_value(SYSCONFDIR), "location of pdns.conf")
     ("commands", po::value<vector<string> >());