]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Remove daemon postun trigger
authorJim Fehlig <jfehlig@suse.com>
Tue, 22 Nov 2022 23:18:27 +0000 (16:18 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 2 Dec 2022 00:01:16 +0000 (17:01 -0700)
Remove %triggerpostun for the daemon package. Upgrades from
libvirt < 1.3.0 are now unlikely.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 277ecd3eb327c544f3070df635f2853bcd94a1b8..fa94cda3c5b6bc57686d62f8ed7c3139851ff06d 100644 (file)
@@ -1466,18 +1466,6 @@ if [ $1 -ge 1 ] ; then
 fi
 %systemd_postun libvirt-guests.service
 
-# 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
-# guests
-%triggerpostun daemon -- libvirt-daemon < 1.3.0
-if [ $1 -ge 1 ] ; then
-    /bin/systemctl is-enabled libvirtd.service 1>/dev/null 2>&1 &&
-        /bin/systemctl enable virtlogd.socket virtlogd-admin.socket || :
-    /bin/systemctl is-active libvirtd.service 1>/dev/null 2>&1 &&
-        /bin/systemctl start virtlogd.socket virtlogd-admin.socket || :
-fi
-
 %posttrans daemon
 %libvirt_sysconfig_posttrans libvirtd virtproxyd virtlogd virtlockd libvirt-guests
 if test %libvirt_daemon_needs_restart libvirtd