Browse Source

bugfix: also enable on restart on linux

smaller-size
AJ ONeal 5 years ago
parent
commit
8e1bd12df7
  1. 6
      manager/install_linux.go

6
manager/install_linux.go

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

Loading…
Cancel
Save