NLnetLabs / nsd

The NLnet Labs Name Server Daemon (NSD) is an authoritative, RFC compliant DNS nameserver.
https://nlnetlabs.nl/nsd
BSD 3-Clause "New" or "Revised" License
449 stars 102 forks source link

contrib: add OpenRC service script, config file, and tmpfiles entry #352

Closed orlitzky closed 2 months ago

orlitzky commented 2 months ago
  1. Add an OpenRC service script and config file under contrib/. The service script is integrated with the build system so that the correct paths are obtained from ./configure and do not need to be hard-coded. (This requires >=autoconf-2.70.) Tested on Gentoo, but it should work on other distros that use OpenRC as well.

  2. Add a tmpfiles entry under contrib/ for both systemd and OpenRC. If installed, this will create at a boot a temporary "nsd" directory writable by the nsd user. This makes it easier to use a local control socket because the user no longer has to worry about creating the directory where the socket will live.

  3. Tweak the default config to show an example of using a local socket in the tmpfiles location.

orlitzky commented 2 months ago

Thank you!