aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/services/dict.scm20
1 files changed, 11 insertions, 9 deletions
diff --git a/gnu/services/dict.scm b/gnu/services/dict.scm
index da5d004701..303067037f 100644
--- a/gnu/services/dict.scm
+++ b/gnu/services/dict.scm
@@ -105,15 +105,17 @@ database {
(chown rundir (passwd:uid user) (passwd:gid user)))))
(define (dicod-shepherd-service 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)))
- #:user "dicod" #:group "dicod"))
- (stop #~(make-kill-destructor)))))
+ (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 #$dicod "--foreground"
+ (string-append "--config=" #$dicod.conf))
+ #:user "dicod" #:group "dicod"))
+ (stop #~(make-kill-destructor))))))
(define dicod-service-type
(service-type