diff --git a/system.go b/system.go index e0f00af..a701a53 100644 --- a/system.go +++ b/system.go @@ -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) }