aports/testing/kimchi/systemd-substitution-with-openrc.patch

15 lines
515 B
Diff

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