Fixing bad command name

This commit is contained in:
Philippe Caseiro 2018-10-26 15:08:36 +02:00
parent e1e2fefef4
commit db024d3c05
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,6 @@ func (s *System) sysRun(param ...string) *SysAction {
// Service implementation of "service" command
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)
}