diff options
author | Lance Richardson <lrichard@redhat.com> | 2017-05-02 16:18:19 -0400 |
---|---|---|
committer | Russell Bryant <rbryant@redhat.com> | 2017-05-02 21:40:53 -0400 |
commit | 44dd4cc49c8a4f9413baa822f111686fd8964160 (patch) | |
tree | 7938c2bbaaaf2e010eb88f21f0ebb868802af248 /rhel | |
parent | fb876c9450d70327018011df1a013962118ea088 (diff) | |
download | openvswitch-44dd4cc49c8a4f9413baa822f111686fd8964160.tar.gz |
fedora: do not restart ovn svcs automatically on pkg upgrade
Similar to commit 5771f4765734 ("fedora: do not restart the
service on a pkg upgrade"), this change eliminates the
automatic restart of OVN services after upgrade.
Note that the post-uninstall scriptlet affected by this change
is executed from the previously installed package when upgrading,
so existing installations need to go through two package upgrades
before this change will take effect.
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 6f67413f8..3200040e8 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -413,36 +413,24 @@ if [ $1 -eq 0 ] ; then fi %postun ovn-central -%if 0%{?systemd_postun_with_restart:1} - %systemd_postun_with_restart ovn-northd.service +%if 0%{?systemd_postun:1} + %systemd_postun ovn-northd.service %else /bin/systemctl daemon-reload >/dev/null 2>&1 || : - if [ "$1" -ge "1" ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart ovn-northd.service >/dev/null 2>&1 || : - fi %endif %postun ovn-host -%if 0%{?systemd_postun_with_restart:1} - %systemd_postun_with_restart ovn-controller.service +%if 0%{?systemd_postun:1} + %systemd_postun ovn-controller.service %else /bin/systemctl daemon-reload >/dev/null 2>&1 || : - if [ "$1" -ge "1" ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart ovn-controller.service >/dev/null 2>&1 || : - fi %endif %postun ovn-vtep -%if 0%{?systemd_postun_with_restart:1} - %systemd_postun_with_restart ovn-controller-vtep.service +%if 0%{?systemd_postun:1} + %systemd_postun ovn-controller-vtep.service %else /bin/systemctl daemon-reload >/dev/null 2>&1 || : - if [ "$1" -ge "1" ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart ovn-controller-vtep.service >/dev/null 2>&1 || : - fi %endif %postun selinux-policy |