File: neutron-openvswitch-agent.init.in

package info (click to toggle)
neutron 2%3A27.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 39,996 kB
  • sloc: python: 296,384; sh: 1,507; makefile: 292; ruby: 35; sql: 19
file content (33 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
### BEGIN INIT INFO
# Provides:          neutron-openvswitch-agent
# Required-Start:    $network $local_fs $remote_fs $syslog openvswitch-switch
# Required-Stop:     $remote_fs openvswitch-switch
# Should-Start:      mysql postgresql rabbitmq-server keystone
# Should-Stop:       mysql postgresql rabbitmq-server keystone
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Neutron OpenVSwitch Agent
# Description:       Agent to use within neutron openswitch client
### END INIT INFO

# Author: Thomas Goirand <zigo@debian.org>
DESC="Openstack Neutron OpenVSwitch Agent (neutron-openvswitch-agent)"
PROJECT_NAME=neutron
NAME=${PROJECT_NAME}-openvswitch-agent
CONFIG_FILE=/etc/neutron/plugins/ml2/openvswitch_agent.ini

# Since Juno OVS plugin as been deprecated as core_plugin, it has been
# replaced by ml2 as core_plugin and ovs as agent. Making ml2 mandatory
# to use this agent
DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf"

# 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

# Workaround to have "iptables-save -t raw" to work after reboot.
iptables -t raw -L >/dev/null 2>&1 || true
ip6tables -t raw -L >/dev/null 2>&1 || true
export OS_OSLO_MESSAGING_RABBIT__PROCESSNAME=neutron-openvswitch-agent