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 6642f280d06cc87f686bfa7a5b5e63c777b8d55a..ad7579cd2751fa9bc0712be3680f94ad4b6fd6dd 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 812060d3c20cad9444e3b9969d3f8a4a498a9525..cad1f531022811dd8d08f6bee7a0a92c8848f637 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 b2248b7addbe43c90d13cbbdd177757e6ccc578f..a1998251685f5d2545c0469108b9a2cdf4ac273a 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 bb85d67a2239eed9231e5389d60fedb8004e9d0a..2c0845296a9c3ceff35db3540c659ea8e3d5a69b 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=