summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-02-25 18:58:13 +0000
committerLudovic Courtès <ludo@gnu.org>2023-03-03 17:55:35 +0100
commit2799ad44234be675f018115f99be98d2c9fd565d (patch)
treebcd10c408fe860437b4a133cec8e42b4d9572dbd /doc
parent7c23dab85ca9d507ceeb078150c56d9fd0e4fd4d (diff)
services: dbus: Deprecate 'dbus-service' procedure.
* doc/guix.texi (Desktop Services): Replace with 'dbus-root-service-type'. Document dbus-configuration. * gnu/services/dbus.scm (dbus-service): Define with 'define-deprecated'. * gnu/services/desktop.scm (desktop-services-for-system): Replace with dbus-root-service-type. * gnu/system/install.scm (%installation-services): Ditto. * gnu/tests/base.scm (%avahi-os): Ditto. * gnu/tests/docker.scm (%docker-os): Ditto. * gnu/tests/lightdm.scm (minimal-desktop-services): Ditto. * gnu/tests/virtualization.scm (%libvirt-os): Ditto. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi49
1 files changed, 31 insertions, 18 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 704c125b103..74658dbc866 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23301,24 +23301,37 @@ The actual service definitions included in @code{%desktop-services} and
23301provided by @code{(gnu services dbus)} and @code{(gnu services desktop)} 23301provided by @code{(gnu services dbus)} and @code{(gnu services desktop)}
23302are described below. 23302are described below.
23303 23303
23304@deffn {Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()] @ 23304@defvar dbus-root-service-type
23305 [#:verbose?] 23305Type for a service that runs the D-Bus ``system bus''.
23306Return a service that runs the ``system bus'', using @var{dbus}, with 23306@footnote{@uref{https://dbus.freedesktop.org/, D-Bus} is an inter-process
23307support for @var{services}. When @var{verbose?} is true, it causes the 23307communication facility. Its system bus is used to allow system services
23308@samp{DBUS_VERBOSE} environment variable to be set to @samp{1}; a 23308to communicate and to be notified of system-wide events.}
23309verbose-enabled D-Bus package such as @code{dbus-verbose} should be 23309
23310provided as @var{dbus} in this scenario. The verbose output is logged 23310The value for this service type is a @code{<dbus-configuration>} record.
23311to @file{/var/log/dbus-daemon.log}. 23311@end defvar
23312 23312
23313@uref{https://dbus.freedesktop.org/, D-Bus} is an inter-process communication 23313@deftp {Data Type} dbus-configuration
23314facility. Its system bus is used to allow system services to communicate 23314Data type representing the configuration for @code{dbus-root-service-type}.
23315and to be notified of system-wide events. 23315
23316 23316@table @asis
23317@var{services} must be a list of packages that provide an 23317@item @code{dbus} (default: @code{dbus}) (type: file-like)
23318@file{etc/dbus-1/system.d} directory containing additional D-Bus configuration 23318Package object for dbus.
23319and policy files. For example, to allow avahi-daemon to use the system bus, 23319
23320@var{services} must be equal to @code{(list avahi)}. 23320@item @code{services} (default: @code{()}) (type: list)
23321@end deffn 23321List of packages that provide an @file{etc/dbus-1/system.d} directory
23322containing additional D-Bus configuration and policy files.
23323For example, to allow avahi-daemon to use the system bus, @var{services}
23324must be equal to @code{(list avahi)}.
23325
23326@item @code{verbose?} (default: @code{#f}) (type: boolean)
23327When @code{#t}, D-Bus is launched with environment variable
23328@samp{DBUS_VERBOSE} set to @samp{1}. A verbose-enabled D-Bus package
23329such as @code{dbus-verbose} should be provided to @var{dbus} in this
23330scenario. The verbose output is logged to
23331@file{/var/log/dbus-daemon.log}.
23332
23333@end table
23334@end deftp
23322 23335
23323@subsubheading Elogind 23336@subsubheading Elogind
23324 23337