[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/17: services: dicod: Use one inetd endpoint per interface.
From: |
guix-commits |
Subject: |
01/17: services: dicod: Use one inetd endpoint per interface. |
Date: |
Sat, 24 Jun 2023 11:08:58 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit deeee98a50267660439109ce8ef8fe856bdb1846
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Jun 24 16:10:03 2023 +0200
services: dicod: Use one inetd endpoint per interface.
* gnu/services/dict.scm (dicod-shepherd-service): Remove
the (= 1 (length interfaces)) restriction by adding one endpoint per
interface.
---
gnu/services/dict.scm | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/gnu/services/dict.scm b/gnu/services/dict.scm
index 90d3c35b6c..23e1d36364 100644
--- a/gnu/services/dict.scm
+++ b/gnu/services/dict.scm
@@ -167,15 +167,15 @@ database {
(provision '(dicod))
(requirement '(user-processes))
(documentation "Run the dicod daemon.")
- (start #~(if (and (defined? 'make-inetd-constructor)
- #$(= 1 (length interfaces))) ;XXX
+ (start #~(if (defined? 'make-inetd-constructor)
(make-inetd-constructor
(list #$dicod "--inetd" "--foreground"
(string-append "--config=" #$dicod.conf))
- (list (endpoint
- (addrinfo:addr
- (car (getaddrinfo #$(first interfaces)
- "dict")))))
+ (map (lambda (interface)
+ (endpoint
+ (addrinfo:addr
+ (car (getaddrinfo interface "dict")))))
+ '#$interfaces)
#:requirements '#$requirement
#:user "dicod" #:group "dicod"
#:service-name-stem "dicod")
@@ -183,8 +183,7 @@ database {
(list #$dicod "--foreground"
(string-append "--config=" #$dicod.conf))
#:user "dicod" #:group "dicod")))
- (stop #~(if (and (defined? 'make-inetd-destructor)
- #$(= 1 (length interfaces))) ;XXX
+ (stop #~(if (defined? 'make-inetd-destructor)
(make-inetd-destructor)
(make-kill-destructor)))
(actions (list (shepherd-configuration-action dicod.conf)))))))
- branch master updated (d6dc82e8cd -> d3f5c35e40), guix-commits, 2023/06/24
- 03/17: doc: Turn "Creating a Channel" into a step-by-step guide., guix-commits, 2023/06/24
- 01/17: services: dicod: Use one inetd endpoint per interface.,
guix-commits <=
- 02/17: linux-container: Pass '--disable-chroot' to 'guix-daemon'., guix-commits, 2023/06/24
- 06/17: gnu: ruby-mini-portile-2: Update to 2.8.2., guix-commits, 2023/06/24
- 04/17: gnu: fenics: Make sure 'jit.py' can find 'dolfin.pc'., guix-commits, 2023/06/24
- 05/17: gnu: fenics-dolfin, fenics: Remove input labels., guix-commits, 2023/06/24
- 07/17: gnu: ruby-nokogiri: Update to 1.15.2., guix-commits, 2023/06/24
- 11/17: gnu: Add subunit., guix-commits, 2023/06/24
- 13/17: gnu: Add yder., guix-commits, 2023/06/24
- 09/17: gnu: Add libansilove., guix-commits, 2023/06/24
- 12/17: gnu: Add orcania., guix-commits, 2023/06/24
- 08/17: gnu: dyninst: Fix runtime error with new glibc., guix-commits, 2023/06/24