2018-04-23 14:57:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# start neutron services
|
|
|
|
|
|
|
|
/etc/write_conf.sh
|
|
|
|
|
|
|
|
/usr/bin/neutron-server \
|
|
|
|
--config-file /etc/neutron/neutron.conf \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini \
|
|
|
|
--config-file /etc/neutron/metadata_agent.ini \
|
|
|
|
--config-dir /etc/neutron/ \
|
|
|
|
-v -d &
|
|
|
|
|
|
|
|
sleep 3
|
|
|
|
/usr/bin/neutron-linuxbridge-agent \
|
|
|
|
--config-file /etc/neutron/neutron.conf \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini \
|
|
|
|
--config-file /etc/neutron/metadata_agent.ini \
|
|
|
|
--config-dir /etc/neutron/ \
|
|
|
|
-v -d &
|
|
|
|
|
|
|
|
sleep 3
|
|
|
|
neutron-metadata-agent \
|
|
|
|
--config-file /etc/neutron/neutron.conf \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
|
|
|
|
--config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini \
|
|
|
|
--config-file /etc/neutron/metadata_agent.ini \
|
|
|
|
--config-dir /etc/neutron/ \
|
|
|
|
-v -d &
|
|
|
|
|
2018-04-23 15:19:43 +02:00
|
|
|
sleep 3
|
|
|
|
neutron-l3-agent \
|
|
|
|
--config-file /etc/neutron/l3_agent.ini \
|
|
|
|
--config-file /etc/neutron/neutron.conf \
|
|
|
|
--config-file /etc/neutron/metadata_agent.ini \
|
|
|
|
--config-dir /etc/neutron/ \
|
|
|
|
-v -d &
|
|
|
|
|
2018-04-23 14:57:26 +02:00
|
|
|
# If any process fails, kill the rest.
|
2018-04-23 15:07:18 +02:00
|
|
|
# This ensures the container stops and systemd will restart it.
|
2018-04-23 14:57:26 +02:00
|
|
|
|
|
|
|
wait -n
|
|
|
|
pkill -P $$
|