From f4d458c55089f36710e5c2f36b578d76702b2789 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 14 Jun 2012 17:12:19 -0700 Subject: [PATCH] debian: Enable passing extra options to ovs-ctl from init scripts. This is useful for passing wrapper script options and possibly for other purposes. Bug #11889. Signed-off-by: Ben Pfaff --- debian/openvswitch-switch.init | 1 + debian/openvswitch-switch.template | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index b44daad8a..3c9372055 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -70,6 +70,7 @@ start () { if test X"$FORCE_COREFILES" != X; then set "$@" --force-corefiles="$FORCE_COREFILES" fi + set "$@" $OVS_CTL_OPTS "$@" || exit $? ovs_ctl --protocol=gre enable-protocol diff --git a/debian/openvswitch-switch.template b/debian/openvswitch-switch.template index 46816eaab..afa5dd30a 100644 --- a/debian/openvswitch-switch.template +++ b/debian/openvswitch-switch.template @@ -6,3 +6,7 @@ # BRCOMPAT: If 'yes' and the openvswitch-brcompat package is installed, then # Linux bridge compatibility will be enabled. # BRCOMPAT=no + +# OVS_CTL_OPTS: Extra options to pass to ovs-ctl. This is, for example, +# a suitable place to specify --ovs-vswitchd-wrapper=valgrind. +# OVS_CTL_OPTS= -- 2.43.0