openstack-ansible-os_swift/templates/swift-systemd-init.j2
Michael Gugino d0c001c5e6 Implement Xenial Support
This commit adds support for Ubuntu 16.04.
Primarily, this commit consists of changes
necessary to support systemd.

Change-Id: Ide0d570b508be8efaa885431598c726d7baad4f6
2016-06-28 09:20:11 -04:00

26 lines
561 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=swift 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('') }}
{% else %}
ExecStart={{ swift_bin }}/{{ program_name }} {{ program_config_options|default('') }}
{% 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