Hello community, here is the log from the commit of package libvirt for openSUSE:Factory checked in at 2016-03-26 15:29:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvirt (Old) and /work/SRC/openSUSE:Factory/.libvirt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt" Changes: -------- --- /work/SRC/openSUSE:Factory/libvirt/libvirt.changes 2016-03-07 13:28:28.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libvirt.new/libvirt.changes 2016-03-26 17:30:42.000000000 +0100 @@ -1,0 +2,7 @@ +Fri Mar 18 20:13:41 UTC 2016 - [email protected] + +- spec: restart daemons in %posttrans after connection drivers + have been processed + bsc#854343, bsc#968483 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt.spec ++++++ --- /var/tmp/diff_new_pack.a1pHKQ/_old 2016-03-26 17:30:45.000000000 +0100 +++ /var/tmp/diff_new_pack.a1pHKQ/_new 2016-03-26 17:30:45.000000000 +0100 @@ -1434,9 +1434,13 @@ %postun daemon /sbin/ldconfig %if %{with_systemd} -%service_del_postun libvirtd.service libvirtd.socket -%service_del_postun virtlockd.service virtlockd.socket -%service_del_postun virtlogd.service virtlogd.socket +# On upgrade, defer restarting daemons until %posttrans +if test $1 -eq 0 ; then + for service in libvirtd virtlockd virtlogd ; do + rm -f "/var/lib/systemd/migrated/$service" 2> /dev/null || : + done + /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi %else %restart_on_update libvirtd %restart_on_update virtlockd @@ -1444,6 +1448,17 @@ %endif %insserv_cleanup +%posttrans daemon +# All connection drivers should be installed post transaction. +# Time to restart daemons. +%if %{with_systemd} +if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then + for service in libvirtd virtlockd virtlogd ; do + /usr/bin/systemctl try-restart ${service}.service >/dev/null 2>&1 || : + done +fi +%endif + # In upgrade scenario we must explicitly enable virtlockd/virtlogd # sockets, if libvirtd is already enabled and start them if # libvirtd is running, otherwise you'll get failures to start
