diff options
| author | Patrick Mullaney <pm.mullaney@gmail.com> | 2010-12-15 10:31:56 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-01-07 10:31:29 -0800 |
| commit | 5badabf575544be30ac671c3961c65911c3f2490 (patch) | |
| tree | 7b775ef8a09e75cd8f2996f848e827dfe8e122ad /xenserver/etc_init.d_openvswitch | |
| parent | 2ce949ba352d075703fe672cdefd7d020bd042bd (diff) | |
| download | openvswitch-5badabf575544be30ac671c3961c65911c3f2490.tar.gz | |
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 <pm.mullaney@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'xenserver/etc_init.d_openvswitch')
| -rwxr-xr-x | xenserver/etc_init.d_openvswitch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 49cd673d7..31aa3fbc1 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 } |
