diff --git a/libvirt.spec.in b/libvirt.spec.in index 5b78ed7216986823e841e493e4b90b71c7932e4a..0153c4f8209a9ebd28b2f882547d342fb212d359 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1799,6 +1799,14 @@ if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; < %{_datadir}/libvirt/networks/default.xml \ > %{_sysconfdir}/libvirt/qemu/networks/default.xml ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml + + # Make sure libvirt picks up the new network defininiton + %if %{with_systemd} + /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 ||: + %else + /sbin/service libvirtd condrestart > /dev/null 2>&1 || : + %endif + fi %endif