Compare commits

..

2 Commits

Author SHA1 Message Date
389b88331d bump 2019-07-10 02:01:12 -06:00
8e1bd12df7 bugfix: also enable on restart on linux 2019-07-10 02:00:43 -06:00
2 changed files with 7 additions and 1 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"},

View File

@ -18,7 +18,7 @@ import (
) )
var GitRev = "000000000" var GitRev = "000000000"
var GitVersion = "v0.3.1-pre+dirty" var GitVersion = "v0.3.2-pre+dirty"
var GitTimestamp = time.Now().Format(time.RFC3339) var GitTimestamp = time.Now().Format(time.RFC3339)
func usage() { func usage() {