mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
fedora: do not restart the service on a pkg upgrade
There is no reliable way to restore the previous networking state after a service restart. Many things like firewall configuration, traffic shaping, stacked devices, custom setups are completely out of OVS control. The OVS might be providing the network used for remote administration, so do not automatically restart the service during a package upgrade. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
This commit is contained in:
parent
9f13fbef37
commit
5771f47657
2
NEWS
2
NEWS
@ -33,6 +33,8 @@ Post-v2.6.0
|
||||
- DPDK:
|
||||
* New option 'n_rxq_desc' and 'n_txq_desc' fields for DPDK interfaces
|
||||
which set the number of rx and tx descriptors to use for the given port.
|
||||
- Fedora packaging:
|
||||
* A package upgrade does not automatically restart OVS service.
|
||||
|
||||
v2.6.0 - 27 Sep 2016
|
||||
---------------------
|
||||
|
@ -344,14 +344,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/sbin/semodule -i %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp &> /dev/null || :
|
||||
|
||||
%postun
|
||||
%if 0%{?systemd_postun_with_restart:1}
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
%if 0%{?systemd_postun:1}
|
||||
%systemd_postun %{name}.service
|
||||
%else
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%postun ovn-central
|
||||
|
Loading…
x
Reference in New Issue
Block a user