From 66df3296c4a8012c745c792cd95edfe2aad81031 Mon Sep 17 00:00:00 2001 From: 45mg <45mg.writes@gmail.com> Date: Fri, 27 Dec 2024 08:29:52 -0500 Subject: services: dnsmasq: Allow custom Shepherd provision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow users to have multiple dnsmasq instances by specifying different `provision` values for the corresponding Shepherd services, similar to what is done with `static-networking-service-type`. * gnu/services/dns.scm ()[provision]: new option. (dnsmasq-shepherd-service): Use supplied provision value. * doc/guix.texi (DNS Services)[dnsmasq-configuration]: Document it. Change-Id: I78c7f015cb1db239a600bc5373b2fd80e8b9b9f4 Signed-off-by: Ludovic Courtès Reviewed-by: Maxim Cournoyer --- gnu/services/dns.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/services') diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm index 043c34599c8..532e20e38a9 100644 --- a/gnu/services/dns.scm +++ b/gnu/services/dns.scm @@ -731,6 +731,8 @@ cache.size = 100 * MB dnsmasq-configuration? (package dnsmasq-configuration-package (default dnsmasq)) ;file-like + (provision dnsmasq-provision + (default '(dnsmasq))) (no-hosts? dnsmasq-configuration-no-hosts? (default #f)) ;boolean (port dnsmasq-configuration-port @@ -802,7 +804,7 @@ cache.size = 100 * MB tftp-lowercase? tftp-port-range tftp-root tftp-unique-root extra-options) (shepherd-service - (provision '(dnsmasq)) + (provision (dnsmasq-provision config)) (requirement '(networking)) (documentation "Run the dnsmasq DNS server.") (start #~(make-forkexec-constructor -- cgit v1.3