aboutsummaryrefslogtreecommitdiff
path: root/net/openvswitch
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-07-28 17:48:41 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2021-07-29 12:30:22 +0300
commit2430c4ef82a58d9a2903785a8edef7392f49bea2 (patch)
tree2fc74a36272ae055ab51240cb26ec5e43df114d8 /net/openvswitch
parent2104f7cd51be4e9f847ae2315d5023ba01ae078e (diff)
openvswitch: add missing basescript variable
The Open vSwitch init script does not set USE_PROCD=1. Instead, it defines most of the functions and variables that would be set when USE_PROCD is set to 1, but with some minor changes. The basescript variable however, which is used when calling procd_open_service and procd_kill, is not set. As a result, basename of the contents of the initscript variable is used as the service name. As the service is automatically started via its symlink in /etc/rc.d, S15openvswitch, the service name is S15openvswitch. Set the basescript variable so that the service name is openvswitch. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'net/openvswitch')
-rwxr-xr-xnet/openvswitch/files/openvswitch.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/files/openvswitch.init b/net/openvswitch/files/openvswitch.init
index 32adbac49..84ba17b62 100755
--- a/net/openvswitch/files/openvswitch.init
+++ b/net/openvswitch/files/openvswitch.init
@@ -7,6 +7,8 @@
. /lib/functions/procd.sh
START=15
+basescript=$(readlink "$initscript")
+
ovs_ctl="/usr/share/openvswitch/scripts/ovs-ctl"; [ -x "$ovs_ctl" ] || ovs_ctl=:
ovn_ctl="/usr/share/ovn/scripts/ovn-ctl"; [ -x "$ovn_ctl" ] || ovn_ctl=: