debian: Enable passing extra options to ovs-ctl from init scripts.
authorBen Pfaff <blp@nicira.com>
Fri, 15 Jun 2012 00:12:19 +0000 (17:12 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 15 Jun 2012 16:36:20 +0000 (09:36 -0700)
This is useful for passing wrapper script options and possibly for other
purposes.

Bug #11889.
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/openvswitch-switch.init
debian/openvswitch-switch.template

index b44daad..3c93720 100755 (executable)
@@ -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
index 46816ea..afa5dd3 100644 (file)
@@ -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=