bifrost/playbooks/roles/bifrost-keystone-install/templates/systemd_template.j2
Andrey Shestakov e56a4ac690 Fixes to allow services startup after reboot
This change introduces small fixes required for system services
to start up after reboot of server.

Change-Id: I038b16c330422c8aa703c4dd0736920f979a10ed
2016-12-23 16:16:10 +02:00

16 lines
368 B
Django/Jinja

[Unit]
Description={{ item.service_name }} service
[Service]
Restart=on-failure
PermissionsStartOnly=true
{% if item.exec_start_pre %}
ExecStartPre={{ item.exec_start_pre }}
{% endif %}
ExecStart={{ item.service_path }}/{{ item.service_name }} {{ item.args }}
User={{ item.username }}
[Install]
WantedBy=multi-user.target
Alias={{ item.service_name }}{{ init_ext }}