148
bs, err := SystemctlCmd("show", "--property=Id,LoadState,ActiveState,SubState", serviceName)
153
load, active, sub := "", "", ""
170
return fmt.Sprintf("%s; %s (%s)", load, active, sub), nil
143
173
// Stop the given service, and wait until it has stopped.
144
174
func (s *systemd) Stop(serviceName string, timeout time.Duration) error {
145
175
if _, err := SystemctlCmd("stop", serviceName); err != nil {