diff options
author | Gurucharan Shetty <guru@ovn.org> | 2017-10-06 04:03:51 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2017-10-06 08:43:47 -0700 |
commit | f28cae87ea5c20a1b82cc440bd6f26b4d9ea7ab3 (patch) | |
tree | dfe49f6ab9a670357d8b7922e0de773f78811445 | |
parent | 6ff726467a91ea69be44f19ca9bd43fa341565ec (diff) | |
download | openvswitch-f28cae87ea5c20a1b82cc440bd6f26b4d9ea7ab3.tar.gz |
rhel: Skip systemctl redirect.
We still use SysV scripts for RHEL. Currently, invoking
/etc/init.d/openvswitch will redirect the calls to
dynamically generated systemd scripts. In the above case when you call
"/etc/init.d/openvswitch-switch start", it inturn calls
"/bin/systemctl start openvswitch-switch.service" and
that inturn again calls "/etc/init.d/openvswitch-switch start"
This patch avoids it. This is similar to what was done to
Debian in commit 873d85653d8 (debian: Skip systemctl redirect.)
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
-rwxr-xr-x | rhel/etc_init.d_openvswitch | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index 3921aab5e..caf24cce8 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -27,6 +27,8 @@ # Short-Description: Open vSwitch switch ### END INIT INFO +SYSTEMCTL_SKIP_REDIRECT=yes + . /usr/share/openvswitch/scripts/ovs-lib || exit 1 test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch |