summaryrefslogtreecommitdiffstats
path: root/modules/graceful/manager_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graceful/manager_windows.go')
-rw-r--r--modules/graceful/manager_windows.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go
index d412e94f9a..1ebdaa1970 100644
--- a/modules/graceful/manager_windows.go
+++ b/modules/graceful/manager_windows.go
@@ -73,7 +73,7 @@ func (g *Manager) start() {
// Make SVC process
run := svc.Run
- isInteractive, err := svc.IsAnInteractiveSession()
+ isInteractive, err := svc.IsWindowsService()
if err != nil {
log.Error("Unable to ascertain if running as an Interactive Session: %v", err)
return
@@ -81,7 +81,9 @@ func (g *Manager) start() {
if isInteractive {
run = debug.Run
}
- go run(WindowsServiceName, g)
+ go func() {
+ _ = run(WindowsServiceName, g)
+ }()
}
// Execute makes Manager implement svc.Handler