[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65119] [PATCH 1/8] services: dicod: Remove Shepherd < 0.9.0 compati
From: |
Ludovic Courtès |
Subject: |
[bug#65119] [PATCH 1/8] services: dicod: Remove Shepherd < 0.9.0 compatibility layer. |
Date: |
Sun, 6 Aug 2023 23:07:28 +0200 |
* gnu/services/dict.scm (dicod-shepherd-service): Use
'make-inetd-constructor' and 'make-inetd-destructor' unconditionally.
---
gnu/services/dict.scm | 31 ++++++++++++-------------------
1 file changed, 12 insertions(+), 19 deletions(-)
diff --git a/gnu/services/dict.scm b/gnu/services/dict.scm
index 23e1d36364..7d48953ef1 100644
--- a/gnu/services/dict.scm
+++ b/gnu/services/dict.scm
@@ -167,25 +167,18 @@ (define (dicod-shepherd-service config)
(provision '(dicod))
(requirement '(user-processes))
(documentation "Run the dicod daemon.")
- (start #~(if (defined? 'make-inetd-constructor)
- (make-inetd-constructor
- (list #$dicod "--inetd" "--foreground"
- (string-append "--config=" #$dicod.conf))
- (map (lambda (interface)
- (endpoint
- (addrinfo:addr
- (car (getaddrinfo interface "dict")))))
- '#$interfaces)
- #:requirements '#$requirement
- #:user "dicod" #:group "dicod"
- #:service-name-stem "dicod")
- (make-forkexec-constructor
- (list #$dicod "--foreground"
- (string-append "--config=" #$dicod.conf))
- #:user "dicod" #:group "dicod")))
- (stop #~(if (defined? 'make-inetd-destructor)
- (make-inetd-destructor)
- (make-kill-destructor)))
+ (start #~(make-inetd-constructor
+ (list #$dicod "--inetd" "--foreground"
+ (string-append "--config=" #$dicod.conf))
+ (map (lambda (interface)
+ (endpoint
+ (addrinfo:addr
+ (car (getaddrinfo interface "dict")))))
+ '#$interfaces)
+ #:requirements '#$requirement
+ #:user "dicod" #:group "dicod"
+ #:service-name-stem "dicod"))
+ (stop #~(make-inetd-destructor))
(actions (list (shepherd-configuration-action dicod.conf)))))))
(define dicod-service-type
--
2.41.0
- [bug#65119] [PATCH 0/8] Sharing service code between Home and System, Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 1/8] services: dicod: Remove Shepherd < 0.9.0 compatibility layer.,
Ludovic Courtès <=
- [bug#65119] [PATCH 2/8] services: dicod: Pre-build the GCIDE index., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 3/8] services: syncthing: Use 'match-record'., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 4/8] services: Define 'for-home'., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 5/8] home: services: Support mapping of System services to Home services., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 7/8] home: services: Add dicod., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 8/8] home: services: Add Syncthing., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 6/8] home: services: mcron: Define as a mapping of the system service., Ludovic Courtès, 2023/08/06
- [bug#65119] [PATCH 0/8] Sharing service code between Home and System, 宋文武, 2023/08/13