mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* migrate to new settings
This commit is contained in:
parent
209934ad67
commit
2335d3879e
8 changed files with 109 additions and 77 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue