bugfix: also enable on restart on linux

This commit is contained in:
AJ ONeal 2019-07-10 02:00:43 -06:00
parent dd25ba0787
commit 8e1bd12df7
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ func start(conf *service.Service) error {
Args: []string{"stop", name + ".service"}, Args: []string{"stop", name + ".service"},
Must: false, Must: false,
}, },
Runnable{
Exec: "systemctl",
Args: []string{"enable", name + ".service"},
Badwords: []string{"not found", "failed"},
Must: true,
},
Runnable{ Runnable{
Exec: "systemctl", Exec: "systemctl",
Args: []string{"start", name + ".service"}, Args: []string{"start", name + ".service"},