
All currently supported systems use systemd, so let's simplify the templates. Change-Id: I66dfeedbff76bd2acd843b9ccffe8c79bc40391b
16 lines
362 B
Django/Jinja
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
|