From c3b5921c8b2ce1ea0ac14f1b3f7d00fa0e6878439039e8d236b25100ca7fe77a Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Mon, 18 Oct 2021 16:06:31 +0000 Subject: [PATCH] - supportconfig: Use systemctl command 'is-active' instead of 'is-enabled' when checking if libvirtd is active OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=910 --- libvirt-supportconfig | 2 +- libvirt.changes | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libvirt-supportconfig b/libvirt-supportconfig index 4e9577d..118a8ae 100644 --- a/libvirt-supportconfig +++ b/libvirt-supportconfig @@ -71,7 +71,7 @@ if ! rpm_verify libvirt-daemon; then exit 0 fi -if systemctl is-enabled libvirtd.service 2>&1 > /dev/null; then +if systemctl is-active --quiet libvirtd.service; then plugin_command "virsh version" plugin_command "virsh capabilities" plugin_command "virsh domcapabilities" diff --git a/libvirt.changes b/libvirt.changes index 899f361..4a919e7 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 18 15:44:15 UTC 2021 - James Fehlig + +- supportconfig: Use systemctl command 'is-active' instead of + 'is-enabled' when checking if libvirtd is active + ------------------------------------------------------------------- Fri Oct 15 21:38:21 UTC 2021 - James Fehlig