Merge pull request #166 in DNS/adguard-dns from fix/598 to master

* commit 'd06cc0f8ee89a0142c493b33d295272ba100aaf5':
  Fix #598 - [change] service: windows: register sercive to work under local system user
This commit is contained in:
Alexey Dmitrievskiy 2019-03-13 11:22:28 +03:00
commit 991717e150
1 changed files with 0 additions and 5 deletions

View File

@ -127,11 +127,6 @@ func configureService(c *service.Config) {
// POSIX
// Redirect StdErr & StdOut to files.
c.Option["LogOutput"] = true
// Windows
if runtime.GOOS == "windows" {
c.UserName = "NT AUTHORITY\\NetworkService"
}
}
// cleanupService called on the service uninstall, cleans up additional files if needed