
This change updates the glance role to support Ubuntu 14.04 with upstart init and 16.04 with a systemd init. Implements: blueprint support-ubuntu-1604 Depends-On: Ib6d7e68133de8d10b81d9116b74dca1de7568897 Change-Id: I39214199e2bbc2bbc5c1b30f8a04aa4e74ed967b Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
26 lines
663 B
Django/Jinja
26 lines
663 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=glance 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/glance/{{ program_name }}.log
|
|
{% else %}
|
|
ExecStart={{ glance_bin }}/{{ program_name }} {{ program_config_options|default('') }} --log-file=/var/log/glance/{{ 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
|