unbound/unbound.service
Petr Menšík a8b2f2adc2 Always auto-restart on crash events
Although no way of crashing is known, ensure unbound will restart itself
in case of crash. That should minimize possible damage and allow less
degraded service until a fix for crashes arrives.

Do not try to restart on configuration failures. There restarts will not
likely to fix the issue anyway.
2024-01-29 12:35:47 +01:00

21 lines
503 B
Desktop File

[Unit]
Description=Unbound recursive Domain Name Server
After=network-online.target
After=unbound-keygen.service
Wants=unbound-keygen.service
After=unbound-anchor.service
Wants=unbound-anchor.service
Before=nss-lookup.target
Wants=nss-lookup.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/unbound
ExecStartPre=/usr/sbin/unbound-checkconf
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
ExecReload=/usr/sbin/unbound-control reload
Restart=on-abnormal
[Install]
WantedBy=multi-user.target