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.
set_system_uuid
start_vswitchd
- start_brcompatd
+ if [ "${ENABLE_BRCOMPAT}" = "y" ] ; then
+ start_brcompatd
+ fi
touch /var/lock/subsys/openvswitch
}
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