openstack-ansible-os_neutron/templates/neutron-systemd-init.j2
Jean-Philippe Evrard 8e461beab9 Neutron 16.04 support
Like glance because that was awesome work.
Ubuntu 16.04 requires a few changes:
- bridge-utils needs to be installed on linux bridge agents
- Namespaces get listed as <namespacename> (id: <id>) instead of only
  <namespacename> which causes our tests to fail.

Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
Implements: blueprint support-ubuntu-1604
Change-Id: I94723d512097b9b1f767262bde534d89cfeb1408
2016-06-02 10:16:18 +01:00

25 lines
666 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=neutron openstack service
After=syslog.target
After=network.target
[Service]
Type=simple
User={{ system_user }}
Group={{ system_group }}
{% if program_override is defined %}
ExecStart={{ program_override }} {{ program_config_options|default('') }} --log-file=/var/log/neutron/{{ program_name }}.log
{% else %}
ExecStart={{ neutron_bin }}/{{ program_name }} {{ program_config_options|default('') }} --log-file=/var/log/neutron/{{ program_name }}.log
{% endif %}
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300
Restart=on-failure
RestartSec=150
[Install]
WantedBy=multi-user.target