mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-02 04:15:46 +00:00
spec: Remove daemon postun trigger
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>
This commit is contained in:
parent
b5936c62e5
commit
522ffd2e96
@ -1466,18 +1466,6 @@ if [ $1 -ge 1 ] ; then
|
|||||||
fi
|
fi
|
||||||
%systemd_postun libvirt-guests.service
|
%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
|
%posttrans daemon
|
||||||
%libvirt_sysconfig_posttrans libvirtd virtproxyd virtlogd virtlockd libvirt-guests
|
%libvirt_sysconfig_posttrans libvirtd virtproxyd virtlogd virtlockd libvirt-guests
|
||||||
if test %libvirt_daemon_needs_restart libvirtd
|
if test %libvirt_daemon_needs_restart libvirtd
|
||||||
|
Loading…
Reference in New Issue
Block a user