openstack-ansible-os_nova/templates/nova-systemd-init.j2
Michael Gugino d69f560f64 Implement Xenial Support
This implements support for Ubuntu 16.04.  The changes
primarily relate to implementing systemd service files
instead of upstart init scripts.

Implements: blueprint support-ubuntu-1604
Change-Id: If0d4de3519e04a45795e64fca9c8ca7b56729a88
2016-06-14 15:38:16 +00:00

26 lines
655 B
Django/Jinja

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