aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2021-02-01 01:49:00 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2021-02-01 21:49:43 +0300
commit847c816ddd3a38c865da460cb7b22cf665db162f (patch)
tree734770122e86c2344a99b397a4dddd8da4d8da5f
parent85843123dedc3060a128457f7814d7461cccb412 (diff)
downloadguix-847c816ddd3a38c865da460cb7b22cf665db162f.tar
guix-847c816ddd3a38c865da460cb7b22cf665db162f.tar.gz
doc: Explain how to set custom Shepherd package.
* doc/guix.texi (Shepherd Services): Give example on how to set custom Shepherd package.
-rw-r--r--doc/guix.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 9e62da438e..beff276f9d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -32895,6 +32895,25 @@ mechanism instead (@pxref{Shepherd Services}).
@end table
@end deftp
+The following example specifies the Shepherd package for the operating
+system:
+
+@lisp
+(operating-system
+ ;; ...
+ (services (append (list openssh-service-type))
+ ;; ...
+ %desktop-services)
+ ;; ...
+ ;; Use own Shepherd package.
+ (essential-services
+ (modify-services (operating-system-default-essential-services
+ this-operating-system)
+ (shepherd-root-service-type config => (shepherd-configuration
+ (inherit config)
+ (shepherd my-shepherd))))))
+@end lisp
+
@defvr {Scheme Variable} %shepherd-root-service
This service represents PID@tie{}1.
@end defvr