* migrate to new settings

This commit is contained in:
hagen 2016-01-20 00:00:00 +00:00
parent 209934ad67
commit 2335d3879e
8 changed files with 109 additions and 77 deletions

View file

@ -1,3 +1,4 @@
#include "Config.h"
#include "Daemon.h"
#include "util.h"
#include "Log.h"
@ -23,7 +24,7 @@ namespace i2p
else
isDaemon = 0;
std::string serviceControl = i2p::util::config::GetArg("-svcctl", "");
std::string serviceControl; i2p::config::GetOption("svcctl", serviceControl);
if (serviceControl == "install")
{
LogPrint(eLogInfo, "WinSVC: installing ", SERVICE_NAME, " as service");