bugfix: also enable on restart on linux
This commit is contained in:
parent
dd25ba0787
commit
8e1bd12df7
|
@ -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"},
|
||||||
|
|
Loading…
Reference in New Issue