mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-27 09:18:58 +03:00
Fix #598 - [change] service: windows: register sercive to work under local system user
This commit is contained in:
parent
ecf0b0c5c1
commit
d06cc0f8ee
2 changed files with 1 additions and 6 deletions
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 a new issue