From 5badabf575544be30ac671c3961c65911c3f2490 Mon Sep 17 00:00:00 2001 From: Patrick Mullaney Date: Wed, 15 Dec 2010 10:31:56 -0800 Subject: [PATCH] xenserver: Only start ovs-external-ids on XenServer. ovs-external-ids's job is to synchronize UUIDs between XAPI and OVSDB. Non-XenServer systems don't have XAPI so they don't need ovs-external-ids. Signed-off-by: Patrick Mullaney Signed-off-by: Ben Pfaff --- xenserver/etc_init.d_openvswitch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 49cd673d..31aa3fbc 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -407,10 +407,12 @@ function start { start_brcompatd fi - # Start daemon to monitor external ids - PYTHONPATH=/usr/share/openvswitch/python \ - /usr/share/openvswitch/scripts/ovs-external-ids \ - --pidfile --detach $monitor_opt "$VSWITCHD_OVSDB_SERVER" + if [ -f /etc/xensource-inventory ]; then + # Start daemon to monitor external ids + PYTHONPATH=/usr/share/openvswitch/python \ + /usr/share/openvswitch/scripts/ovs-external-ids \ + --pidfile --detach $monitor_opt "$VSWITCHD_OVSDB_SERVER" + fi touch /var/lock/subsys/openvswitch } -- 2.30.2