Update specs to v. 2014.1.b3
[openstack-build/neutron-build.git] / debian / neutron-l3-agent.upstart
index 6677b902094fab88e8e095041fb2c7f8cbd313da..baaa57609901a5a03961317fc22a2d8570066532 100644 (file)
@@ -12,6 +12,11 @@ chdir /var/run
 pre-start script
   mkdir -p /var/run/neutron
   chown neutron:root /var/run/neutron
+  # Check to see if openvswitch plugin in use by checking
+  # status of cleanup upstart configuration
+  if status neutron-ovs-cleanup; then
+    start wait-for-state WAIT_FOR=neutron-ovs-cleanup WAIT_STATE=running WAITER=neutron-l3-agent
+  fi
 end script
 
 exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-l3-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --log-file=/var/log/neutron/l3-agent.log