xenserver, rhel: Enable extra ovs-ctl options from init scripts.
authorBen Pfaff <blp@nicira.com>
Fri, 15 Jun 2012 17:26:34 +0000 (10:26 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 15 Jun 2012 17:26:34 +0000 (10:26 -0700)
This is useful for passing wrapper script options and possibly for other
purposes.

Bug #11889.
Signed-off-by: Ben Pfaff <blp@nicira.com>
rhel/etc_init.d_openvswitch
rhel/usr_share_openvswitch_scripts_sysconfig.template
xenserver/etc_init.d_openvswitch
xenserver/usr_share_openvswitch_scripts_sysconfig.template

index 6642f28..ad7579c 100755 (executable)
@@ -48,6 +48,7 @@ start () {
     if test X"$BRCOMPAT" = Xyes; then
        set "$@" --brcompat
     fi
+    set "$@" $OVS_CTL_OPTS
     "$@"
 
     $ovs_ctl --protocol=gre enable-protocol
index 812060d..cad1f53 100644 (file)
@@ -21,3 +21,7 @@
 
 # BRCOMPAT: If 'yes' compatibility mode will be enabled.
 # BRCOMPAT=yes
+
+# 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=
index b2248b7..a199825 100755 (executable)
@@ -76,6 +76,7 @@ start () {
         touch /var/run/openvswitch.booted
         set "$@" --delete-bridges
     fi
+    set "$@" $OVS_CTL_OPTS
     "$@"
 
     start_ovs_xapi_sync
index bb85d67..2c08452 100644 (file)
@@ -18,3 +18,7 @@
 #     system memory pressure in extraordinary situations, such as multiple
 #     concurrent VM import operations.
 # VSWITCHD_MLOCKALL=yes
+
+# 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=