all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Josua Stingelin <josuast@hotmail.com>
Cc: guix-devel@gnu.org
Subject: Re: unbound-service-type
Date: Mon, 14 Feb 2022 22:42:32 +0100	[thread overview]
Message-ID: <87leydqg53.fsf@gnu.org> (raw)
In-Reply-To: <DB9PR06MB7657C505B6B580A05DED5487AA309@DB9PR06MB7657.eurprd06.prod.outlook.com> (Josua Stingelin's message of "Fri, 11 Feb 2022 12:42:48 +0100")

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’.


  parent reply	other threads:[~2022-02-14 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11 11:42 unbound-service-type Josua Stingelin
2022-02-12  3:43 ` unbound-service-type jbranso
2022-02-14 21:42 ` Ludovic Courtès [this message]
2022-02-20 17:06   ` unbound-service-type Josua Stingelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87leydqg53.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=josuast@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.