From d091a0f624c156591f98f5510d40b1f3d154eda5 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 15 Jul 2023 00:53:22 +0800 Subject: [PATCH] services: wakapi: Use wakapi package. * rosenthal/services/child-error.scm (home-wakapi-configuration)[wakapi]: Change default value to wakapi-bin package. (home-wakapi-shepherd-service)[start]: Adjust accordingly. [stop]: Add missing field. --- rosenthal/services/child-error.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rosenthal/services/child-error.scm b/rosenthal/services/child-error.scm index be85cae..1265559 100644 --- a/rosenthal/services/child-error.scm +++ b/rosenthal/services/child-error.scm @@ -260,8 +260,8 @@ headers. This can expose sensitive information in your logs.") (define-configuration/no-serialization home-wakapi-configuration (wakapi - (string "/bin/wakapi") - "The wakapi executable.") + (file-like wakapi-bin) + "The wakapi package.") (config (yaml-config '()) "Association list of Wakapi configurations.")) @@ -276,7 +276,9 @@ headers. This can expose sensitive information in your logs.") (documentation "Run wakapi.") (provision '(wakapi)) (start #~(make-forkexec-constructor - (list #$wakapi "-config" #$config-file))))))))) + (list #$(file-append wakapi "/bin/wakapi") + "-config" #$config-file))) + (stop #~(make-kill-destructor)))))))) (define home-wakapi-service-type (service-type