]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: restart virtnwfilter/virnetworkd if configs change
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 28 Jul 2021 15:29:49 +0000 (16:29 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 4 Aug 2021 14:57:45 +0000 (15:57 +0100)
Currently we restart libvirtd if the nwfilter/network configs have
changed. We need to take account of possibility that the modular
daemons are in use instead though.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 1d657aec35854648ec473f76186fee265a6f9676..c00d4c73da15df09bd6b42303fed3fee6997948e 100644 (file)
@@ -1404,10 +1404,12 @@ if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ;
 
     # Make sure libvirt picks up the new network defininiton
     %libvirt_daemon_schedule_restart libvirtd
+    %libvirt_daemon_schedule_restart virtnetworkd
 fi
 
 %posttrans daemon-config-network
 %libvirt_daemon_perform_restart libvirtd
+%libvirt_daemon_perform_restart virtnetworkd
 
 %post daemon-config-nwfilter
 for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do
@@ -1419,9 +1421,11 @@ for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do
 done
 # Make sure libvirt picks up the new nwfilter defininitons
 %libvirt_daemon_schedule_restart libvirtd
+%libvirt_daemon_schedule_restart virtnwfilterd
 
 %posttrans daemon-config-nwfilter
 %libvirt_daemon_perform_restart libvirtd
+%libvirt_daemon_perform_restart virtnwfilterd
 
 %if %{with_qemu}
 %pre daemon-driver-qemu