From 518cbed9442fa6f66a3ee850de99c02e59522d80 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 28 Aug 2024 00:16:25 +0200 Subject: feat(services): support service timers for which a running state means waiting --- stdlib/os/systemd/systemd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/os/systemd/systemd.go b/stdlib/os/systemd/systemd.go index 298998e..46a35da 100644 --- a/stdlib/os/systemd/systemd.go +++ b/stdlib/os/systemd/systemd.go @@ -16,7 +16,8 @@ func isEnabled(name string) bool { } func isRunning(name string) bool { - return systemctlShow(name, "SubState") == "running" + value := systemctlShow(name, "SubState") + return value == "running" || value == "waiting" } func systemctl(name, operation string) (gonf.Status, error) { -- cgit v1.2.3