#!/bin/sh ### BEGIN INIT INFO # Provides: neutron-bgp-dragent # Required-Start: $network $local_fs $remote_fs $syslog # Required-Stop: $remote_fs # Should-Start: mysql postgresql rabbitmq-server keystone openvswitch-switch neutron-server # Should-Stop: mysql postgresql rabbitmq-server keystone openvswitch-switch neutron-server # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Dynamic Routing BGP Agent # Description: Neutron Dymanic Routing BGP Agent ### END INIT INFO # Authors: Thomas Goirand DESC="OpenStack Neutron dynamic routing agent" PROJECT_NAME=neutron NAME=${PROJECT_NAME}-bgp-dragent # neutron-bgp-agent crashes with json logs and debug. # To avoid this, let's force use_json=False, always. export OS_DEFAULT__USE_JSON=False # --config-file=/etc/neutron/neutron.conf will be happened # to DAEMON_ARGS later by openstack-pkg-tools DAEMON_ARGS="--config-file=/etc/neutron/bgp_dragent.ini" # Load agent side config files if [ -e /etc/neutron/agent.conf.d ] ; then DAEMON_ARGS="--config-dir=/etc/neutron/agent.conf.d ${DAEMON_ARGS}" fi