aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kimchi/systemd-substitution-with-openrc.patch
blob: b05f54553036a67678f54523af84690afc3da26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/utils.py b/utils.py
index 22430ce..2ec4845 100644
--- a/utils.py
+++ b/utils.py
@@ -265,9 +265,11 @@ 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
+
 
 
 def is_s390x():