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:
commit
991717e150
|
@ -127,11 +127,6 @@ func configureService(c *service.Config) {
|
||||||
// POSIX
|
// POSIX
|
||||||
// Redirect StdErr & StdOut to files.
|
// Redirect StdErr & StdOut to files.
|
||||||
c.Option["LogOutput"] = true
|
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
|
// cleanupService called on the service uninstall, cleans up additional files if needed
|
||||||
|
|
Loading…
Reference in New Issue