]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Don't save/restore running VMs on libvirt-client update
authorCole Robinson <crobinso@redhat.com>
Thu, 21 Nov 2013 20:04:35 +0000 (15:04 -0500)
committerCole Robinson <crobinso@redhat.com>
Fri, 22 Nov 2013 14:33:59 +0000 (09:33 -0500)
Restarting an active libvirt-guests.service is the equivalent of
doing:

/usr/libexec/libvirt-guests.sh stop
/usr/libexec/libvirt-guests.sh start

Which in a default configuration will managedsave every running VM,
and then restore them. Certainly not something we should do every
time the libvirt-client RPM is updated.

Just drop the try-restart attempt, I don't know what purpose it
serves anyways.

https://bugzilla.redhat.com/show_bug.cgi?id=962225
(cherry picked from commit d65e0e1466b09964b85c79b8cc78be454df53583)

libvirt.spec.in

index 403b7679626b20d827f6db0fe36373bcb3ca53c1..b3f0651e216ef8e75395d086be276da056fdfa02 100644 (file)
@@ -1630,9 +1630,8 @@ fi
 # If the package is allowed to autostart:
 /bin/systemctl --no-reload enable libvirt-guests.service >/dev/null 2>&1 ||:
 
-# Run these because the SysV package being removed won't do them
+# Run this because the SysV package being removed won't do them
 /sbin/chkconfig --del libvirt-guests >/dev/null 2>&1 || :
-/bin/systemctl try-restart libvirt-guests.service >/dev/null 2>&1 || :
 %endif
 
 %if %{with_sanlock}