
This change introduces small fixes required for system services to start up after reboot of server. Change-Id: I038b16c330422c8aa703c4dd0736920f979a10ed
16 lines
368 B
Django/Jinja
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 }}
|