openstack-ansible-os_cinder/templates/cinder-systemd-init.j2
Ashana Evans ab33572534 Update the cinder role to support Ubuntu 16.04 and Systemd
-Created a  ubuntu-16.04 file in vars
-Updated meta/main.yml dependencies to include xenial
 as a verison of Ubuntu.
-Added cinder-16.04-support.yaml in realesenotes
-Added template files for systemd support

Implements: blueprint support-ubuntu-1604

Change-Id: Idb2f6b84fc558b21ca2dfce6121dc22ff31a659a
2016-06-24 08:45:06 -04:00

26 lines
663 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=cinder 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/cinder/{{ program_name }}.log
{% else %}
ExecStart={{ cinder_bin }}/{{ program_name }} {{ program_config_options|default('') }} --log-file=/var/log/cinder/{{ 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