[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/22: services: Add hurd-user-services-service-type.
From: |
guix-commits |
Subject: |
19/22: services: Add hurd-user-services-service-type. |
Date: |
Mon, 13 Apr 2020 09:20:50 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 71b980e2ee9b556cef220ca46cbe28e3fa5f5e70
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Mon Apr 13 11:04:09 2020 +0200
services: Add hurd-user-services-service-type.
The `guix-daemon' service type depends on `user-services'. Provide a dummy
for that, so that we can use the guix-daemon service unmodified.
* gnu/services/hurd.scm (hurd-user-services-shepherd-service,
hurd-user-services-service-type): New function.
(hurd-service->shepherd-service): Add entry.
---
gnu/services/hurd.scm | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/gnu/services/hurd.scm b/gnu/services/hurd.scm
index 647bf9b..efa8aea 100644
--- a/gnu/services/hurd.scm
+++ b/gnu/services/hurd.scm
@@ -34,7 +34,8 @@
hurd-ssh-configuration
hurd-ssh-service-type
hurd-ttys-configuration
- hurd-ttys-service-type))
+ hurd-ttys-service-type
+ hurd-user-processes-service-type))
;;; Commentary:
;;;
@@ -49,10 +50,38 @@
(($ <hurd-console-configuration>) (hurd-console-shepherd-service config))
(($ <hurd-ttys-configuration>) (hurd-ttys-shepherd-service config))
(($ <openssh-configuration>) (hurd-ssh-shepherd-service config))
+ (('user-processes) (hurd-user-processes-shepherd-service #f))
(_ '()))))
;;;
+;;; Dummy hurd-user-processes service, required for guix-daemon.
+;;;
+
+(define (hurd-user-processes-shepherd-service _)
+ "Return the 'user-processes' Shepherd service."
+
+ (list (shepherd-service
+ (documentation "Dummy for bootstrapping (gnu services) on the Hurd.")
+ (provision '(user-processes))
+ (requirement '())
+ (start #~(const #t))
+ (stop #~(const #t))
+ (respawn? #f))))
+
+(define hurd-user-processes-service-type
+ (service-type
+ (name 'user-processes)
+ (extensions (list (service-extension shepherd-root-service-type
+ hurd-user-processes-shepherd-service)))
+ (compose concatenate)
+ (extend append)
+ (default-value '(user-processes)) ;canary for hurd-service->shepherd-service
+ (description "Dummy service to bootstrap (gnu services) on the
+Hurd.")))
+
+
+;;;
;;; Simple wrapper for <hurd>/bin/console.
;;;
- 08/22: build.sh: Disable daemon deduplication; builds gnu-make-boot0!, (continued)
- 08/22: build.sh: Disable daemon deduplication; builds gnu-make-boot0!, guix-commits, 2020/04/13
- 09/22: system: hurd: Bump image size to 10GiB., guix-commits, 2020/04/13
- 12/22: system: hurd: Add the Shepherd., guix-commits, 2020/04/13
- 11/22: system: hurd: Add openssh., guix-commits, 2020/04/13
- 15/22: DRAFT system: hurd: Start the Shepherd., guix-commits, 2020/04/13
- 18/22: services: Add hurd-ttys-service-type., guix-commits, 2020/04/13
- 14/22: gnu: python: Build fix for the Hurd., guix-commits, 2020/04/13
- 20/22: services: Register guix-daemon-service as a hurd service., guix-commits, 2020/04/13
- 16/22: services: Add hurd., guix-commits, 2020/04/13
- 13/22: gnu: coreutils: Mark three more tests XFAIL on the Hurd., guix-commits, 2020/04/13
- 19/22: services: Add hurd-user-services-service-type.,
guix-commits <=
- 21/22: system: hurd: Initial (gnu services) generated shepherd.conf., guix-commits, 2020/04/13
- 17/22: services: Add hurd-console-service-type., guix-commits, 2020/04/13
- 22/22: HACK use uncompiled .scm for shepherd, guix-commits, 2020/04/13