Unbound won't start on system boot
Colin Watson
cjwatson at ubuntu.com
Thu Jun 12 16:09:42 UTC 2025
On Thu, Jun 12, 2025 at 11:00:44AM -0400, Robert Moskowitz via ubuntu-users wrote:
>I am still fighting with local resolution. That is a separate
>question. But
>
>On reboot, unbound fails to start, but restarts just fine later. One
>google dig found:
>
>"The problem seems to relate to "nss-lookup", and I suspect that the
>network interface is not available fast enough"
>
>So put in your /etc/crontab
>
>@reboot /bin/systemctl restart unbound
>
>!!! that seems rather heavy-handed!
Quite! If you need to force it to only start after some other unit has
come up, a much more sensible approach would be to use "systemctl edit
unbound.service" to create a drop-in unit (basically a local override)
that adds an After= directive to the [Unit] section. Or whatever else
of that kind that you need.
--
Colin Watson (he/him) [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list