From 7fd3f78e6d6a50f933e63f5bcb24bcef8c02a9a3 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 29 Jun 2022 17:27:41 +0200 Subject: [PATCH] Try 07 --- pkg/templater/files.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/templater/files.go b/pkg/templater/files.go index 748f084..4385235 100644 --- a/pkg/templater/files.go +++ b/pkg/templater/files.go @@ -55,7 +55,12 @@ func (cf *ConfigFile) Generate(root string, templateDir string, values []byte) e log.Printf("\tFile %s generated\n", dest) if cf.Service != "" { - sv := SystemService{Name: cf.Service} + sv := SystemService{ + Name: cf.Service, + Enabled: true, + Type: "", + ToStart: true, + } return sv.Restart() } return nil