]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Restart libvirtd on upgrade without socket activation
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 10 Jan 2023 11:21:56 +0000 (12:21 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 10 Jan 2023 14:47:39 +0000 (15:47 +0100)
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>
libvirt.spec.in

index d9529fc76c4a7b15d4b8bcedc3bae9d969803310..77b274b6f91d8ba81a1de14a367208e9311ff186 100644 (file)
@@ -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