Add '--service' option for usage of ProgramData directory (since 2.43.0!)

R4SAS
2022-06-06 18:28:42 +03:00
parent 805647a2cc
commit bb86769ac0

@@ -9,7 +9,7 @@ Fire up elevated Command Prompt (<kbd>Win+X</kbd>, <kbd>A</kbd> since Windows 8)
_Note: Mind spaces after `=`!_
```
sc create i2pdService binPath= "C:\soft\i2pd\i2pd.exe --daemon" DisplayName= "i2pd router service" obj= "NT AUTHORITY\LocalService" start= "auto"
sc create i2pdService binPath= "C:\Program Files\i2pd\i2pd.exe --daemon --service" DisplayName= "i2pd router service" obj= "NT AUTHORITY\LocalService" start= "auto"
```
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 LocalService AppData location. You may find it handy to use [Far File Manager](http://www.farmanager.com) or alike for such manipulations.