From: Martin Kletzander Date: Tue, 10 Jan 2023 11:21:56 +0000 (+0100) Subject: spec: Restart libvirtd on upgrade without socket activation X-Git-Tag: v9.0.0-rc2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f93d546d198c7dc47068dbc0f233aad28b0e33a;p=thirdparty%2Flibvirt.git spec: Restart libvirtd on upgrade without socket activation The %posttrans phase has a special case for upgrading libvirt daemon with --listen, but it forgot to also restart the daemon in order to run the new installed version. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1820437 Signed-off-by: Martin Kletzander Reviewed-by: Ján Tomko Reviewed-by: Jiri Denemark --- diff --git a/libvirt.spec.in b/libvirt.spec.in index d9529fc76c..77b274b6f9 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1449,6 +1449,7 @@ then libvirtd-admin.socket \ libvirtd-tls.socket \ libvirtd-tcp.socket >/dev/null 2>&1 || : + /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || : else # Old libvirtd owns the sockets and will delete them on # shutdown. Can't use a try-restart as libvirtd will simply