aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kimchi/systemd-substitution-with-openrc.patch
blob: 0ca2ff19a9b67b5104979b179a47200ddcfa05c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/utils.py b/utils.py
index 1e2c951..459c76f 100644
--- a/utils.py
+++ b/utils.py
@@ -263,6 +263,7 @@ def is_libvirtd_up():
     """
     Checks if libvirtd.service is up.
     """
-    cmd = ['systemctl', 'is-active', 'libvirtd.service']
+    cmd = ['rc-service', 'is-active', 'libvirtd.service']
+    cmd = ['rc-service', 'libvirtd', 'status']
     output, error, rc = run_command(cmd, silent=True)
-    return True if output == 'active\n' else False
+    return True if "started" in output else False