Unbound won't start on system boot
Robert Moskowitz
rgm at htt-consult.com
Fri Jun 13 12:40:24 UTC 2025
On 6/13/25 12:24 AM, Jeffrey Walton wrote:
> On Thu, Jun 12, 2025 at 5:06 PM Robert Moskowitz<rgm at htt-consult.com> wrote:
>> On 6/12/25 4:40 PM, Jeffrey Walton wrote:
>>> On Thu, Jun 12, 2025 at 4:01 PM Robert Moskowitz<rgm at htt-consult.com> wrote:
>> Jun 12 15:16:12 onlo systemd[1]:
>> /etc/systemd/system/unbound.service.d/override.conf:3: Failed to parse
>> sec value, ignoring: 30 # Allow restarts within a 30-second interval
> It looks like the problem is with your comment style.
>
> It looks like systemd recognizes comments at the start of a line, and
> not at arbitrary positions. See
> <https://www.freedesktop.org/software/systemd/man/latest/systemd.syntax.html>.
>
That was the ticket! trimmed up my override lines, did the reload
(though one blog said that "systemctl edit" does that automagically),
rebooted and netstat shows the unbounded listening as configured!
Tested with dig, both on the server and from systems on my network. So I
am now ready to put this into production and clean up the kludges I have
done for DNS resolution internally these past weeks.
I will write this all up and post it somewhere...
BTW, wrt to # within the config lines. I am so use to this practice
that I just assumed the config file libraries auto do this. But my
simple hack in python to read a config file can't do it:
file1 = open(configfile, 'r')
a = True
while a:
line = file1.readline()
if not line:
a = False
exec("%s" % line.strip())
file1.close()
that works for what I want, so I stopped digging for "better"
approaches. I get it....
thanks for all the help.
Until next project! :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20250613/65c82317/attachment.html>
More information about the ubuntu-users
mailing list