guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: services: Fix the spice-vdagent service.


From: guix-commits
Subject: 04/04: services: Fix the spice-vdagent service.
Date: Wed, 5 May 2021 16:36:54 -0400 (EDT)

apteryx pushed a commit to branch version-1.3.0
in repository guix.

commit 6b0704339dacaada2dd9a999395c2dffc1bd9af0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Apr 17 00:29:06 2021 -0400

    services: Fix the spice-vdagent service.
    
    * gnu/services/spice.scm (spice-vdagent-activation): Update runtime 
directory
    from /var/run/spice-vdagentd to /run/spice-vdagentd.
    (spice-vdagent-service-type): Specify a default value and fix indentation.
---
 gnu/services/spice.scm | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/gnu/services/spice.scm b/gnu/services/spice.scm
index fd85dc2..a2aee4a 100644
--- a/gnu/services/spice.scm
+++ b/gnu/services/spice.scm
@@ -38,7 +38,7 @@
   "Return the activation gexp for CONFIG."
   #~(begin
       (use-modules (guix build utils))
-      (mkdir-p "/var/run/spice-vdagentd")))
+      (mkdir-p "/run/spice-vdagentd")))
 
 (define (spice-vdagent-shepherd-service config)
   "Return a <shepherd-service> for spice-vdagentd with CONFIG."
@@ -61,14 +61,16 @@
   (compose list spice-vdagent-configuration-spice-vdagent))
 
 (define spice-vdagent-service-type
-  (service-type (name 'spice-vdagent)
-    (extensions
-      (list (service-extension shepherd-root-service-type
-                               spice-vdagent-shepherd-service)
-            (service-extension activation-service-type
-                               spice-vdagent-activation)
-            (service-extension profile-service-type
-                               spice-vdagent-profile)))))
+  (service-type
+   (name 'spice-vdagent)
+   (default-value (spice-vdagent-configuration))
+   (extensions
+    (list (service-extension shepherd-root-service-type
+                             spice-vdagent-shepherd-service)
+          (service-extension activation-service-type
+                             spice-vdagent-activation)
+          (service-extension profile-service-type
+                             spice-vdagent-profile)))))
 
 (define* (spice-vdagent-service
           #:optional (config (spice-vdagent-configuration)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]