[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: services: Add description to core services.
From: |
Ludovic Courtès |
Subject: |
01/09: services: Add description to core services. |
Date: |
Wed, 20 Jun 2018 17:47:39 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 636bb2b5e350bb5eb1d934da690c85e52e352bc4
Author: Ludovic Courtès <address@hidden>
Date: Wed Jun 20 10:44:24 2018 +0200
services: Add description to core services.
* gnu/services.scm (system-service-type, boot-service-type)
(cleanup-service-type, activation-service-type)
(special-files-service-type, etc-service-type)
(setuid-program-service-type, profile-service-type)
(firmware-service-type, gc-root-service-type): Add 'description' field.
---
gnu/services.scm | 51 +++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 10 deletions(-)
diff --git a/gnu/services.scm b/gnu/services.scm
index 55ad5c9..51edb48 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -331,7 +331,11 @@ containing the given entries."
(service-type (name 'system)
(extensions '())
(compose identity)
- (extend system-derivation)))
+ (extend system-derivation)
+ (description
+ "Build the operating system top-level directory, which in
+turn refers to everything the operating system needs: its kernel, initrd,
+system profile, boot script, and so on.")))
(define (compute-boot-script _ mexps)
;; Reverse MEXPS so that extensions appear in the boot script in the right
@@ -358,7 +362,10 @@ directory."
(list (service-extension system-service-type
boot-script-entry)))
(compose identity)
- (extend compute-boot-script)))
+ (extend compute-boot-script)
+ (description
+ "Produce the operating system's boot script, which is spawned
+by the initrd once the root file system is mounted.")))
(define %boot-service
;; The service that produces the boot script.
@@ -413,7 +420,10 @@ boot."
(service-type (name 'cleanup)
(extensions
(list (service-extension boot-service-type
- cleanup-gexp)))))
+ cleanup-gexp)))
+ (description
+ "Delete files from @file{/tmp}, @file{/var/run}, and other
+temporary locations at boot time.")))
(define* (activation-service->script service)
"Return as a monadic value the activation script for SERVICE, a service of
@@ -469,7 +479,10 @@ ACTIVATION-SCRIPT-TYPE."
(list (service-extension boot-service-type
gexps->activation-gexp)))
(compose identity)
- (extend second-argument)))
+ (extend second-argument)
+ (description
+ "Run @dfn{activation} code at boot time and upon
address@hidden system reconfigure} completion.")))
(define %activation-service
;; The activation service produces the activation script from the gexps it
@@ -517,7 +530,10 @@ ACTIVATION-SCRIPT-TYPE."
(lambda (files)
#~(activate-special-files '#$files)))))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description
+ "Add special files to the root file system---e.g.,
address@hidden/usr/bin/env}.")))
(define (extra-special-file file target)
"Use TARGET as the \"special file\" FILE. For example, TARGET might be
@@ -551,7 +567,8 @@ directory."
#~(activate-etc #$etc))))
(service-extension system-service-type etc-entry)))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description "Populate the @file{/etc} directory.")))
(define (etc-service files)
"Return a new service of ETC-SERVICE-TYPE that populates /etc with FILES.
@@ -566,7 +583,10 @@ FILES must be a list of name/file-like object pairs."
#~(activate-setuid-programs
(list address@hidden))))))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description
+ "Populate @file{/run/setuid-programs} with the specified
+executables, making them setuid-root.")))
(define (packages->profile-entry packages)
"Return a system entry for the profile containing PACKAGES."
@@ -583,7 +603,11 @@ FILES must be a list of name/file-like object pairs."
(list (service-extension system-service-type
packages->profile-entry)))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description
+ "This is the @dfn{system profile}, available as
address@hidden/run/current-system/profile}. It contains packages that the
sysadmin
+wants to be globally available to all the system users.")))
(define (firmware->activation-gexp firmware)
"Return a gexp to make the packages listed in FIRMWARE loadable by the
@@ -599,7 +623,11 @@ kernel."
(list (service-extension activation-service-type
firmware->activation-gexp)))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description
+ "Make ``firmware'' files loadable by the operating system
+kernel. Firmware may then be uploaded to some of the machine's devices, such
+as Wifi cards.")))
(define (gc-roots->system-entry roots)
"Return an entry in the system's output containing symlinks to ROOTS."
@@ -626,7 +654,10 @@ kernel."
(list (service-extension system-service-type
gc-roots->system-entry)))
(compose concatenate)
- (extend append)))
+ (extend append)
+ (description
+ "Register garbage-collector roots---i.e., store items that
+will not be reclaimed by the garbage collector.")))
;;;
- branch master updated (6a8d338 -> 913f1f1), Ludovic Courtès, 2018/06/20
- 05/09: gnu: Add emacs-mu4e-conversation., Ludovic Courtès, 2018/06/20
- 03/09: guix system: 'list-generation' correctly displays file system labels., Ludovic Courtès, 2018/06/20
- 06/09: gnu: emacs-evil-collection: Update to 20180617., Ludovic Courtès, 2018/06/20
- 01/09: services: Add description to core services.,
Ludovic Courtès <=
- 08/09: gnu: emacs-evil-mu4e: Deprecate in favor of emacs-evil-collection., Ludovic Courtès, 2018/06/20
- 04/09: Update NEWS., Ludovic Courtès, 2018/06/20
- 09/09: gnu: emacs-evil: Update to 20180517., Ludovic Courtès, 2018/06/20
- 02/09: services: boot: Take gexps instead of monadic gexps., Ludovic Courtès, 2018/06/20
- 07/09: gnu: emacs-evil-ediff: Deprecate in favor of emacs-evil-collection., Ludovic Courtès, 2018/06/20