mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
update to current state
@@ -15,16 +15,21 @@ need to add `daemon = yes` in config, but `--daemon` can be supplied
|
|||||||
as an argument.
|
as an argument.
|
||||||
|
|
||||||
### Service installation
|
### Service installation
|
||||||
|
|
||||||
Fire up elevated Command Prompt (<kbd>Win+X</kbd>, <kbd>A</kbd> in
|
Fire up elevated Command Prompt (<kbd>Win+X</kbd>, <kbd>A</kbd> in
|
||||||
Windows 8) and type in the following making sure you use the correct
|
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
|
account. Its configuration folder is likely
|
||||||
`C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\i2pd`. You
|
`C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\i2pd`. You
|
||||||
will need elevated privileges to access this location. You may find it
|
will need elevated privileges to access this location. You may find it
|
||||||
@@ -37,8 +42,14 @@ for such manipulations.
|
|||||||
|
|
||||||
To uninstall this service use
|
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,
|
from the eleveated Command Prompt. Make sure that MMC is closed,
|
||||||
|
|||||||
Reference in New Issue
Block a user