21 lines
594 B
Django/Jinja
21 lines
594 B
Django/Jinja
[Unit]
|
|
Description={{ unit_description }}
|
|
After=network.target network-online.target mysqld.service postgresql.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
{% if unit_exec_start_pre is defined %}{% for pre_exec in unit_exec_start_pre %}
|
|
ExecStartPre={{ pre_exec }}
|
|
ExecStart={{ unit_exec_start }}
|
|
{% if unit_restart_policy is defined %}
|
|
Restart={{ unit_restart_policy }}
|
|
{% endif %}
|
|
{% if unit_restart_secs is defined %}
|
|
RestartSec={{ unit_restart_secs }}
|
|
{% endif %}
|
|
{% if unit_timeout_start_sec is defined %}
|
|
TimeoutStartSec = {{ unit_timeout_start_sec }}
|
|
{% endif %}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|