mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 03:29:40 -05:00
doc: Explain how to set custom Shepherd package.
* doc/guix.texi (Shepherd Services): Give example on how to set custom Shepherd package.
This commit is contained in:
parent
85843123de
commit
847c816ddd
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue