diff options
Diffstat (limited to 'pkg/helper/windows_install.go')
-rw-r--r-- | pkg/helper/windows_install.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/helper/windows_install.go b/pkg/helper/windows_install.go index 637e80b..d2298b0 100644 --- a/pkg/helper/windows_install.go +++ b/pkg/helper/windows_install.go @@ -56,7 +56,7 @@ func installService(name, desc string) error { s.Close() return fmt.Errorf("service %s already exists", name) } - s, err = m.CreateService(name, exepath, mgr.Config{DisplayName: desc}, "is", "auto-started") + s, err = m.CreateService(name, exepath, mgr.Config{StartType: mgr.StartAutomatic, DisplayName: desc}) if err != nil { return err } |