Fix #598 - [change] service: windows: register sercive to work under local system user

This commit is contained in:
Aleksey Dmitrevskiy 2019-03-11 19:18:18 +03:00
parent ecf0b0c5c1
commit d06cc0f8ee
2 changed files with 1 additions and 6 deletions

View File

@ -16,8 +16,8 @@ import (
"sync/atomic"
"time"
"github.com/bluele/gcache"
"github.com/AdguardTeam/golibs/log"
"github.com/bluele/gcache"
"golang.org/x/net/publicsuffix"
)

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