From db024d3c05a91a044e1449affaddb48fd7732e09 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 26 Oct 2018 15:08:36 +0200 Subject: [PATCH] Fixing bad command name --- system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }