Accepting request 844500 from home:fbui:branches:Virtualization

- Drop use of $DISABLE_RESTART_ON_UPDATE in %postrans
  Testing "$DISABLE_RESTART_ON_UPDATE != yes" had no effect since its
  value is supposed to be read from /etc/sysconfig/services.

OBS-URL: https://build.opensuse.org/request/show/844500
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=849
This commit is contained in:
James Fehlig 2020-10-28 17:04:42 +00:00 committed by Git OBS Bridge
parent f4b4095258
commit d928164284
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Oct 28 06:37:22 UTC 2020 - Franck Bui <fbui@suse.com>
- Drop use of $DISABLE_RESTART_ON_UPDATE in %postrans
Testing "$DISABLE_RESTART_ON_UPDATE != yes" had no effect since its
value is supposed to be read from /etc/sysconfig/services.
-------------------------------------------------------------------
Wed Oct 14 16:44:22 UTC 2020 - James Fehlig <jfehlig@suse.com>

View File

@ -1229,7 +1229,7 @@ fi
# shutdown. We can't use try-restart as libvirtd will own the sockets again
# after restart. So we must instead shutdown libvirtd, start the sockets,
# then start libvirtd.
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then
if test "$YAST_IS_RUNNING" != "instsys"; then
/usr/bin/systemctl is-active libvirtd.service >/dev/null 2>&1
if test $? = 0 ; then
/usr/bin/systemctl stop libvirtd.service >/dev/null 2>&1 || :