diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-07-28 16:53:16 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-08-04 15:58:28 +0100 |
commit | b8ef62554449ba8f38f3b265fd4751fa8d7bfc88 (patch) | |
tree | 50e9660f8bb989b17dd3f3e920c64fe23119180b /libvirt.spec.in | |
parent | c2eafaf7a30248d5ac9bc0557e727353bf8669e1 (diff) | |
download | libvirt-b8ef62554449ba8f38f3b265fd4751fa8d7bfc88.tar.gz |
rpm: restart modular daemons on upgrade
The daemons all need restarting to ensure they pick up the newly
installed code.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'libvirt.spec.in')
-rw-r--r-- | libvirt.spec.in | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libvirt.spec.in b/libvirt.spec.in index c00d4c73da..92cf6e4f42 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1360,11 +1360,80 @@ fi %firewalld_reload %endif +%libvirt_daemon_schedule_restart virtnetworkd + %postun daemon-driver-network %if %{with_firewalld_zone} %firewalld_reload %endif +%posttrans daemon-driver-network +%libvirt_daemon_perform_restart virtnetworkd + + +%post daemon-driver-nwfilter +%libvirt_daemon_schedule_restart virtnwfilterd + +%posttrans daemon-driver-nwfilter +%libvirt_daemon_perform_restart virtnwfilterd + + +%post daemon-driver-nodedev +%libvirt_daemon_schedule_restart virtnodedevd + +%posttrans daemon-driver-nodedev +%libvirt_daemon_perform_restart virtnodedevd + + +%post daemon-driver-interface +%libvirt_daemon_schedule_restart virtinterfaced + +%posttrans daemon-driver-interface +%libvirt_daemon_perform_restart virtinterfaced + + +%post daemon-driver-secret +%libvirt_daemon_schedule_restart virtsecretd + +%posttranstrans daemon-driver-secret +%libvirt_daemon_perform_restart virtsecretd + + +%post daemon-driver-storage +%libvirt_daemon_schedule_restart virtstoraged + +%posttrans daemon-driver-storage +%libvirt_daemon_perform_restart virtstoraged + + +%post daemon-driver-qemu +%libvirt_daemon_schedule_restart virtqemud + +%posttrans daemon-driver-qemu +%libvirt_daemon_perform_restart virtqemud + + +%post daemon-driver-lxc +%libvirt_daemon_schedule_restart virtlxcd + +%posttrans daemon-driver-lxc +%libvirt_daemon_perform_restart virtlxcd + + +%post daemon-driver-vbox +%libvirt_daemon_schedule_restart virtvboxd + +%posttrans daemon-driver-vbox +%libvirt_daemon_perform_restart virtvboxd + + +%post daemon-driver-libxl +%libvirt_daemon_schedule_restart virtxend + +%posttrans daemon-driver-libxl +%libvirt_daemon_perform_restart virtxend + + %post daemon-config-network if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then # see if the network used by default network creates a conflict, |