mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
services: dicod-service: Honor 'dicod-configuration-dico'.
* gnu/services/dict.scm (dicod-shepherd-service): Use 'dicod-configuration-dico' of config.
This commit is contained in:
parent
ae1e2133b9
commit
e5aade794a
1 changed files with 11 additions and 9 deletions
|
@ -105,15 +105,17 @@ (define %dicod-activation
|
|||
(chown rundir (passwd:uid user) (passwd:gid user)))))
|
||||
|
||||
(define (dicod-shepherd-service config)
|
||||
(let ((dicod (file-append (dicod-configuration-dico config)
|
||||
"/bin/dicod"))
|
||||
(dicod.conf (dicod-configuration-file config)))
|
||||
(list (shepherd-service
|
||||
(provision '(dicod))
|
||||
(documentation "Run the dicod daemon.")
|
||||
(start #~(make-forkexec-constructor
|
||||
(list (string-append #$dico "/bin/dicod") "--foreground"
|
||||
(string-append
|
||||
"--config=" #$(dicod-configuration-file config)))
|
||||
(list #$dicod "--foreground"
|
||||
(string-append "--config=" #$dicod.conf))
|
||||
#:user "dicod" #:group "dicod"))
|
||||
(stop #~(make-kill-destructor)))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define dicod-service-type
|
||||
(service-type
|
||||
|
|
Loading…
Reference in a new issue