summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stdlib/os/systemd/systemd.go3
1 files changed, 2 insertions, 1 deletions
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) {