diff --git a/service.go b/service.go index ed8a927..c57d552 100644 --- a/service.go +++ b/service.go @@ -130,8 +130,8 @@ type Config struct { ChRoot string UserService bool // Install as a current user service. - // System specific parameters. - KV KeyValue + // System specific options. + Option KeyValue } var errNameFieldRequired = errors.New("Config.Name field is required.") diff --git a/service_darwin.go b/service_darwin.go index 94d847c..547cbef 100644 --- a/service_darwin.go +++ b/service_darwin.go @@ -108,8 +108,8 @@ func (s *darwinLaunchdService) Install() error { }{ Config: s.Config, Path: path, - KeepAlive: s.KV.bool("KeepAlive", true), - RunAtLoad: s.KV.bool("RunAtLoad", false), + KeepAlive: s.Option.bool("KeepAlive", true), + RunAtLoad: s.Option.bool("RunAtLoad", false), } functions := template.FuncMap{ diff --git a/service_windows.go b/service_windows.go index f1e0a65..289a6b2 100644 --- a/service_windows.go +++ b/service_windows.go @@ -194,7 +194,7 @@ func (ws *windowsService) Install() error { Description: ws.Description, StartType: mgr.StartAutomatic, ServiceStartName: ws.UserName, - Password: ws.KV.string("Password", ""), + Password: ws.Option.string("Password", ""), }) if err != nil { return err