From fc72ccd85b962c243ea7cf5c674be91f4243dca9 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_vswitch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 872383cdc..e79a536ff 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -268,7 +268,7 @@ function start { start_vswitchd if [ "${ENABLE_BRCOMPAT}" = "y" ] ; then - start_brcompatd + start_brcompatd fi reload_vswitchd # ensures ovs-vswitchd has fully read config file. touch /var/lock/subsys/vswitch @@ -311,7 +311,9 @@ case "$1" in ;; status) status -p ovs-vswitchd.pid ovs-vswitchd - status -p ovs-brcompatd.pid ovs-brcompatd + if [ "$ENABLE_BRCOMPAT" = "y" ] ; then + status -p ovs-brcompatd.pid ovs-brcompatd + fi ;; version) /usr/sbin/ovs-vswitchd -V -- 2.47.0