all: run goimports.
This commit is contained in:
+4
-4
@@ -191,8 +191,8 @@ func (s *linuxService) Start() error {
|
||||
return exec.Command("initctl", "start", s.name).Run()
|
||||
}
|
||||
if s.flavor == initSystemd {
|
||||
return exec.Command("systemctl", "start", s.name + ".service").Run()
|
||||
}
|
||||
return exec.Command("systemctl", "start", s.name+".service").Run()
|
||||
}
|
||||
return exec.Command("service", s.name, "start").Run()
|
||||
}
|
||||
|
||||
@@ -201,8 +201,8 @@ func (s *linuxService) Stop() error {
|
||||
return exec.Command("initctl", "stop", s.name).Run()
|
||||
}
|
||||
if s.flavor == initSystemd {
|
||||
return exec.Command("systemctl", "stop", s.name + ".service").Run()
|
||||
}
|
||||
return exec.Command("systemctl", "stop", s.name+".service").Run()
|
||||
}
|
||||
return exec.Command("service", s.name, "stop").Run()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user