~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to templates/upstart/neutron-server.upstart

  • Committer: Corey Bryant
  • Date: 2015-04-02 20:15:28 UTC
  • mfrom: (81.1.6 trunk) (96 trunk)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: corey.bryant@canonical.com-20150402201528-4sofyas6dazz0e45
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]
 
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
script
 
17
  [ -r /etc/default/{{ process_name }} ] && . /etc/default/{{ process_name }}
 
18
  [ -r "$NEUTRON_PLUGIN_CONFIG" ] && CONF_ARG="--config-file $NEUTRON_PLUGIN_CONFIG"
 
19
  exec start-stop-daemon --start --chuid neutron --exec /usr/local/bin/neutron-server -- \
 
20
    --config-file /etc/neutron/neutron.conf \
 
21
    --log-file /var/log/neutron/server.log $CONF_ARG
 
22
end script