doc: Explain how to set custom Shepherd package.
authorOleg Pykhalov <go.wigust@gmail.com>
Sun, 31 Jan 2021 22:49:00 +0000 (01:49 +0300)
committerOleg Pykhalov <go.wigust@gmail.com>
Mon, 1 Feb 2021 18:49:43 +0000 (21:49 +0300)
* doc/guix.texi (Shepherd Services): Give example on how to set custom
Shepherd package.

doc/guix.texi

index 9e62da4..beff276 100644 (file)
@@ -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