From 15406c80f4c36a4d87abbfe1cd98caea72c03e05 Mon Sep 17 00:00:00 2001 From: SteelPhase Date: Thu, 14 May 2020 10:53:43 -0400 Subject: [PATCH] Return a better status for "activating" --- service_systemd_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service_systemd_linux.go b/service_systemd_linux.go index 8b82109..73e064a 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -226,6 +226,8 @@ func (s *systemd) Status() (Status, error) { return StatusRunning, nil case strings.HasPrefix(out, "inactive"): return StatusStopped, nil + case strings.HasPrefix(out, "activating"): + return StatusRunning, nil case strings.HasPrefix(out, "failed"): return StatusUnknown, errors.New("service in failed state") default: