[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unbound-service-type
From: |
Ludovic Courtès |
Subject: |
Re: unbound-service-type |
Date: |
Mon, 14 Feb 2022 22:42:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
Josua Stingelin <josuast@hotmail.com> skribis:
> (define unbound-shepherd-service
> (match-lambda
> (($ <unbound-configuration> package pid-file)
> (list (shepherd-service
> (provision '(unbound))
> (documentation "Run the unbound DNS server.")
> (requirement '(networking))
> (start #~(make-forkexec-constructor
> '(#$(file-append package "/sbin/unbound")
> "-d"
> "-c" "/etc/unbound/unbound.conf")
I’d recommend passing the config file directly, as in:
"-c" #$(local-file "unbound.conf")
instead of storing it in /etc. It’s “cleaner” in that you can tell
precisely which config file unbound loaded.
> However when I add these to my operating-system configuration, and copy the
> configuration file using the etc-service-type it doesn't run on start.
Do you have additional info as to why it doesn’t start? Perhaps error
messages in /var/log/messages or something?
Thanks,
Ludo’.