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 <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Martin Kletzander 2023-01-10 12:21:56 +01:00
parent 2b5f925112
commit 8f93d546d1

View File

@ -1449,6 +1449,7 @@ then
libvirtd-admin.socket \ libvirtd-admin.socket \
libvirtd-tls.socket \ libvirtd-tls.socket \
libvirtd-tcp.socket >/dev/null 2>&1 || : libvirtd-tcp.socket >/dev/null 2>&1 || :
/bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
else else
# Old libvirtd owns the sockets and will delete them on # Old libvirtd owns the sockets and will delete them on
# shutdown. Can't use a try-restart as libvirtd will simply # shutdown. Can't use a try-restart as libvirtd will simply