prevent neutron-server init script for kill himself
[openstack-build/neutron-build.git] / debian / neutron-l3-agent.upstart
1 # vim:set ft=upstart ts=2 et:
2 description "Neutron L3 Agent"
3 author "Chuck Short <zulcss@ubuntu.com>"
4
5 start on runlevel [2345]
6 stop on runlevel [!2345]
7
8 respawn
9
10 chdir /var/run
11
12 pre-start script
13   mkdir -p /var/run/neutron
14   chown neutron:root /var/run/neutron
15   # Check to see if openvswitch plugin in use by checking
16   # status of cleanup upstart configuration
17   if status neutron-ovs-cleanup; then
18     start wait-for-state WAIT_FOR=neutron-ovs-cleanup WAIT_STATE=running WAITER=neutron-l3-agent
19   fi
20 end script
21
22 exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-l3-agent -- \
23   --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini \
24   --config-file=/etc/neutron/fwaas_driver.ini --log-file=/var/log/neutron/l3-agent.log