1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/kimchi/systemd-substitution-with-openrc.patch
2017-04-19 10:06:02 +00:00

18 lines
539 B
Diff

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():