~james-page/charms/trusty/neutron-openvswitch/lp1531102

« back to all changes in this revision

Viewing changes to templates/upstart/neutron-plugin-openvswitch-agent.upstart

Deploy from source

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "{{ service_description }}"
 
2
author "Juju {{ charm_name }} Charm <juju@localhost>"
 
3
 
 
4
start on runlevel [2345] and started {{ cleanup_process_name}}
 
5
stop on runlevel [!2345]
 
6
 
 
7
respawn
 
8
 
 
9
chdir /var/run
 
10
 
 
11
pre-start script
 
12
  mkdir -p /var/run/neutron
 
13
  chown neutron:root /var/run/neutron
 
14
end script
 
15
 
 
16
exec start-stop-daemon --start --chuid neutron --exec /usr/local/bin/{{ process_name }} -- \
 
17
    --config-file=/etc/neutron/neutron.conf --config-file={{ plugin_config }} \
 
18
    --log-file={{ log_file }}