2017-01-30 12:28:01 -08:00
|
|
|
# The default ubuntu unbound service uses SysV fallback mode, we want a proper unit file so unbound gets restarted correctly
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Unbound DNS Resolver
|
2022-01-26 16:33:19 +01:00
|
|
|
After=network-online.target
|
2021-05-14 12:07:05 -07:00
|
|
|
Before=nss-lookup.target
|
|
|
|
|
Wants=network-online.target nss-lookup.target
|
2017-01-30 12:28:01 -08:00
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
PIDFile=/run/unbound.pid
|
|
|
|
|
ExecStart=/usr/sbin/unbound -d
|
2023-03-29 11:18:44 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2017-01-30 12:28:01 -08:00
|
|
|
Restart=always
|
2021-06-04 09:40:37 -07:00
|
|
|
# On ubuntu 16, this doesn't work for some reason
|
2021-05-14 12:07:05 -07:00
|
|
|
Type=notify
|
2017-01-30 12:28:01 -08:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|