diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-04-17 00:29:06 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-05 16:31:06 -0400 |
| commit | 6b0704339dacaada2dd9a999395c2dffc1bd9af0 (patch) | |
| tree | d00ad35316dd7b783a1031e130322495f449a0ca /gnu | |
| parent | b1b41a23f4e48e35bafe282029190bba32cb7218 (diff) | |
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.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/services/spice.scm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gnu/services/spice.scm b/gnu/services/spice.scm index fd85dc234f7..a2aee4ab2a6 100644 --- a/gnu/services/spice.scm +++ b/gnu/services/spice.scm | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | "Return the activation gexp for CONFIG." | 38 | "Return the activation gexp for CONFIG." |
| 39 | #~(begin | 39 | #~(begin |
| 40 | (use-modules (guix build utils)) | 40 | (use-modules (guix build utils)) |
| 41 | (mkdir-p "/var/run/spice-vdagentd"))) | 41 | (mkdir-p "/run/spice-vdagentd"))) |
| 42 | 42 | ||
| 43 | (define (spice-vdagent-shepherd-service config) | 43 | (define (spice-vdagent-shepherd-service config) |
| 44 | "Return a <shepherd-service> for spice-vdagentd with CONFIG." | 44 | "Return a <shepherd-service> for spice-vdagentd with CONFIG." |
| @@ -61,14 +61,16 @@ | |||
| 61 | (compose list spice-vdagent-configuration-spice-vdagent)) | 61 | (compose list spice-vdagent-configuration-spice-vdagent)) |
| 62 | 62 | ||
| 63 | (define spice-vdagent-service-type | 63 | (define spice-vdagent-service-type |
| 64 | (service-type (name 'spice-vdagent) | 64 | (service-type |
| 65 | (extensions | 65 | (name 'spice-vdagent) |
| 66 | (list (service-extension shepherd-root-service-type | 66 | (default-value (spice-vdagent-configuration)) |
| 67 | spice-vdagent-shepherd-service) | 67 | (extensions |
| 68 | (service-extension activation-service-type | 68 | (list (service-extension shepherd-root-service-type |
| 69 | spice-vdagent-activation) | 69 | spice-vdagent-shepherd-service) |
| 70 | (service-extension profile-service-type | 70 | (service-extension activation-service-type |
| 71 | spice-vdagent-profile))))) | 71 | spice-vdagent-activation) |
| 72 | (service-extension profile-service-type | ||
| 73 | spice-vdagent-profile))))) | ||
| 72 | 74 | ||
| 73 | (define* (spice-vdagent-service | 75 | (define* (spice-vdagent-service |
| 74 | #:optional (config (spice-vdagent-configuration))) | 76 | #:optional (config (spice-vdagent-configuration))) |
