diff --git a/Setting-up-i2pd-as-Windows-Service.md b/Setting-up-i2pd-as-Windows-Service.md index 511eca7..8a26069 100644 --- a/Setting-up-i2pd-as-Windows-Service.md +++ b/Setting-up-i2pd-as-Windows-Service.md @@ -15,16 +15,21 @@ need to add `daemon = yes` in config, but `--daemon` can be supplied as an argument. ### Service installation - Fire up elevated Command Prompt (Win+X, A in Windows 8) and type in the following making sure you use the correct -path where you have `i2pd.exe`. Mind spaces after `=`. +path where you have `i2pd.exe`. +_Method one:_ ``` -sc create i2pService binPath= "C:\dev\i2p\appveyor\i2pd.exe --daemon" DisplayName= "i2p router service" obj= "NT AUTHORITY\LocalService" +C:\dev\i2p\appveyor\i2pd.exe --svcctl=install ``` -This way, the service will run under special *LocalService* user +_Method two (Mind spaces after `=`):_ +``` +sc create i2pdService binPath= "C:\dev\i2p\appveyor\i2pd.exe --daemon" DisplayName= "i2pd router service" obj= "NT AUTHORITY\LocalService" +``` + +In both ways, the service will run under special *LocalService* user account. Its configuration folder is likely `C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\i2pd`. You will need elevated privileges to access this location. You may find it @@ -37,8 +42,14 @@ for such manipulations. To uninstall this service use +_Method one:_ ``` -sc delete i2pService +C:\dev\i2p\appveyor\i2pd.exe --svcctl=remove +``` + +_Method two:_ +``` +sc delete i2pdService ``` from the eleveated Command Prompt. Make sure that MMC is closed,