~ubuntu-branches/ubuntu/wily/neutron-vpnaas/wily

« back to all changes in this revision

Viewing changes to debian/neutron-vpn-agent.upstart.in

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-01-14 11:23:12 UTC
  • Revision ID: package-import@ubuntu.com-20150114112312-emwz3yeft23ufy8w
Tags: 1:2015.1~b1-0ubuntu4
Initial release for OpenStack Kilo-1 milestone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim:set ft=upstart ts=2 et:
 
2
description "Neutron VPN 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-vpn-agent
 
19
  fi
 
20
end script
 
21
 
 
22
exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-vpn-agent -- \
 
23
       --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/vpn_agent.ini \
 
24
       --config-file=/etc/neutron/l3_agent.ini --config-file=/etc/neutron/fwaas_driver.ini \
 
25
       --log-file=/var/log/neutron/vpn_agent.log