services: dicod: Remove Shepherd < 0.9.0 compatibility layer.
* gnu/services/dict.scm (dicod-shepherd-service): Use 'make-inetd-constructor' and 'make-inetd-destructor' unconditionally.
This commit is contained in:
parent
78748c619a
commit
171ab374f9
@ -167,25 +167,18 @@ database {
|
||||
(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
|
||||
|
Loading…
Reference in New Issue
Block a user