Fixing bad command name
This commit is contained in:
parent
e1e2fefef4
commit
db024d3c05
|
@ -36,6 +36,6 @@ func (s *System) sysRun(param ...string) *SysAction {
|
||||||
|
|
||||||
// Service implementation of "service" command
|
// Service implementation of "service" command
|
||||||
func (s *System) Service(name string, action string) *SysAction {
|
func (s *System) Service(name string, action string) *SysAction {
|
||||||
cmd := fmt.Sprintf("/etc/init.d/%s ", name)
|
cmd := fmt.Sprintf("/etc/init.d/%s", name)
|
||||||
return s.sysRun(cmd, action)
|
return s.sysRun(cmd, action)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue