From 7c632268f215bc91a26831b171c4ba04a343ae8e Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 2 Oct 2009 11:32:10 +0100 Subject: [PATCH] xenserver: Correct "service vswitch status" when brcompatd is disabled I don't think it makes sense to report brcompatd's status when it is explicitly disabled. Doing so causes service status to return an error when brcompatd is deliberately disabled. Also fix up a tab vs. spaces whitespace snafu. --- xenserver/etc_init.d_openvswitch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index f531d45ce..0101562ff 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -384,7 +384,9 @@ function start { set_system_uuid start_vswitchd - start_brcompatd + if [ "${ENABLE_BRCOMPAT}" = "y" ] ; then + start_brcompatd + fi touch /var/lock/subsys/openvswitch } @@ -423,7 +425,9 @@ case "$1" in status) status -p "$OVSDB_SERVER_PIDFILE" ovsdb-server status -p "$VSWITCHD_PIDFILE" ovs-vswitchd - status -p "$BRCOMPATD_PIDFILE" ovs-brcompatd + if [ "$ENABLE_BRCOMPAT" = "y" ] ; then + status -p ovs-brcompatd.pid ovs-brcompatd + fi ;; version) /usr/sbin/ovsdb-server -V -- 2.43.0