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" "sync/atomic"
"time" "time"
"github.com/bluele/gcache"
"github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/log"
"github.com/bluele/gcache"
"golang.org/x/net/publicsuffix" "golang.org/x/net/publicsuffix"
) )

View file

@ -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