2022-02-21 13:52:46 +01:00
|
|
|
{%- from "dkron/map.jinja" import dkron with context -%}
|
2020-07-30 14:10:22 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2020-07-10 00:58:55 +02:00
|
|
|
[Unit]
|
|
|
|
Description=dkron - Open Source task scheduler
|
|
|
|
Documentation=https://dkron.io/
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=%i
|
|
|
|
ExecStart={{ dkron.install_dir }}/dkron/dkron agent
|
|
|
|
Restart=on-failure
|
|
|
|
SuccessExitStatus=3 4
|
|
|
|
RestartForceExitStatus=3 4
|
|
|
|
|
|
|
|
[Install]
|
2020-07-30 14:10:22 +02:00
|
|
|
WantedBy=multi-user.target
|