From: Bert Hubert Date: Thu, 6 Jan 2011 19:09:55 +0000 (+0000) Subject: suggested by Maik Zumstrull, pdnssec needs --config-name to access virtual configurat... X-Git-Tag: auth-3.0~427 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f6cf1135517559d3e97b8a88861e4b94e9765b5;p=pdns suggested by Maik Zumstrull, pdnssec needs --config-name to access virtual configurations. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1820 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index bed722845..1a20a0745 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -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(); ::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(), "be verbose") ("force", "force an action") + ("config-name", po::value(), "virtual configuration name") ("config-dir", po::value()->default_value(SYSCONFDIR), "location of pdns.conf") ("commands", po::value >());