not clear, when unbound added support for this. on ubuntu 16, unbound is 1.5.8. on ubuntu 20, unbound is 1.9.4
19 lines
497 B
Desktop File
19 lines
497 B
Desktop File
# 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
|
|
After=network-online.target docker.service
|
|
Before=nss-lookup.target
|
|
Wants=network-online.target nss-lookup.target
|
|
|
|
[Service]
|
|
PIDFile=/run/unbound.pid
|
|
ExecStart=/usr/sbin/unbound -d
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
# On ubuntu 16, this doesn't work for some reason
|
|
Type=notify
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|