1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Update README.md

This commit is contained in:
fabianskibr 2019-07-24 13:34:43 -03:00 committed by GitHub
parent f9ebb41c80
commit 3fa582031c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,8 +323,23 @@ docker run -d --name godns --restart=always \
## Run it as a Windows service
* Get [birkett/srvany-ng](https://github.com/birkett/srvany-ng/releases) from Github.
* Uncompress and place the executable `srvany-ng.exe` to the same directory where `godns.exe` in.
* Create a service and add registry keys according to the guide [here](https://github.com/birkett/srvany-ng).
After creating your config.json file:
* Get the latest [NSSM](https://nssm.cc/download) for create a windows service.
* Open the command prompt (as administrator) in the folder where you downloaded NSSM (e.g. C:\Downloads\nssm\ **win64**) and run:
```
nssm install YOURSERVICENAME
```
You will have an interface to configure your service, it is very simple in the "Application" tab just indicate where your `godns.exe` file is. Optionally you can also define a description on the "Details" tab and define a log file on the "I/O" tab.
* Finish using the "Install service" button.
* Done. Now whenever windows start your service will be loaded.
* To uninstall:
```
nssm remove YOURSERVICENAME
```
## Enjoy it!