mirror of
https://github.com/therootcompany/serviceman.git
synced 2025-02-22 14:48:04 +00:00
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"},
|
||||
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…
x
Reference in New Issue
Block a user