Try 07
This commit is contained in:
parent
dd0608dfe8
commit
7fd3f78e6d
|
@ -55,7 +55,12 @@ func (cf *ConfigFile) Generate(root string, templateDir string, values []byte) e
|
||||||
log.Printf("\tFile %s generated\n", dest)
|
log.Printf("\tFile %s generated\n", dest)
|
||||||
|
|
||||||
if cf.Service != "" {
|
if cf.Service != "" {
|
||||||
sv := SystemService{Name: cf.Service}
|
sv := SystemService{
|
||||||
|
Name: cf.Service,
|
||||||
|
Enabled: true,
|
||||||
|
Type: "",
|
||||||
|
ToStart: true,
|
||||||
|
}
|
||||||
return sv.Restart()
|
return sv.Restart()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue