mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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 873d85653d
(debian: Skip systemctl redirect.)
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -27,6 +27,8 @@
|
|||||||
# Short-Description: Open vSwitch switch
|
# Short-Description: Open vSwitch switch
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
SYSTEMCTL_SKIP_REDIRECT=yes
|
||||||
|
|
||||||
. /usr/share/openvswitch/scripts/ovs-lib || exit 1
|
. /usr/share/openvswitch/scripts/ovs-lib || exit 1
|
||||||
test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch
|
test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user