Dmitry Tantsur 6f44cd8c31 Stop supporting non-systemd systems
All currently supported systems use systemd, so let's simplify
the templates.

Change-Id: I66dfeedbff76bd2acd843b9ccffe8c79bc40391b
2020-06-03 16:01:07 +02:00

16 lines
362 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 }}.service