15 lines
367 B
Django/Jinja
15 lines
367 B
Django/Jinja
[Unit]
|
|
Description={{ unit_description }}
|
|
After=network.target network-online.target mysqld.service postgresql.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStartPre=-mkdir -p @runstatedir@/dbmail
|
|
ExecStartPre=-chown dbmail:dbmail @runstatedir@/dbmail
|
|
ExecStart={{ unit_exec_start }}
|
|
Restart=always
|
|
RestartSec=3s
|
|
TimeoutStartSec = infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|