From: Ben Pfaff Date: Fri, 15 Jun 2012 00:12:19 +0000 (-0700) Subject: debian: Enable passing extra options to ovs-ctl from init scripts. X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f4d458c55089f36710e5c2f36b578d76702b2789 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 --- 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=