summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2024-12-13 17:27:46 +0100
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-12-15 00:19:41 +0900
commite92b20a41a026b8af7dd2031eb61267b061617b5 (patch)
treeb827dbe88af30765e3629c8ed3d60e0dbdd91a00 /doc
parenta64a3a14e8be7c67cd5fc72d87438dbfcb831a30 (diff)
services: mingetty: Support waiting on shepherd services.
For auto-login on systems with elogind, dbus-system needs to be started. This commit adds ability to express that ordering. * gnu/services/base.scm (<mingetty-configuration>): Add shepherd-requirement field. (mingetty-shepherd-service): Use it. * doc/guix.texi (Base Services)<mingetty-configuration>: Document it. Change-Id: Iedbdc4375180740379d561aa193d7c63350d2e7b Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 04e5a89b99..3d501a08c9 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -19457,6 +19457,26 @@ login program.
When set to a string, use this directory at the process's root
directory.
+@item @code{shepherd-requirement}
+List of shepherd requirements. Unless you know what you are doing, it
+is recommended to extend the default list instead of overriding it.
+
+As an example, when using auto-login on a system with elogind, it is
+necessary to wait on the @code{'dbus-system} service:
+
+@lisp
+(modify-services %base-services
+ (mingetty-service-type config =>
+ (mingetty-configuration
+ (inherit config)
+ ;; Automatically log in as "guest".
+ (auto-login "guest")
+ (shepherd-requirement
+ (cons 'dbus-system
+ (mingetty-configuration-shepherd-requirement
+ config))))))
+@end lisp
+
@item @code{mingetty} (default: @var{mingetty})
The Mingetty package to use.