diff --git a/dnsworker/dnsworker.service b/dnsworker/dnsworker.service index 8d5ae8a..d0b2343 100644 --- a/dnsworker/dnsworker.service +++ b/dnsworker/dnsworker.service @@ -1,10 +1,12 @@ [Unit] Description=WebDNS Worker Wants=network-online.target After=network-online.target [Service] ExecStart=/srv/dnsworker/bin/dns-worker -c /etc/dnsworker/cfg.yml +Restart=on-failure +RestartSec=120s [Install] WantedBy=multi-user.target