diff options
| author | Bruno Victal <mirai@makinata.eu> | 2023-02-25 18:58:13 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-03-03 17:55:35 +0100 |
| commit | 2799ad44234be675f018115f99be98d2c9fd565d (patch) | |
| tree | bcd10c408fe860437b4a133cec8e42b4d9572dbd /doc | |
| parent | 7c23dab85ca9d507ceeb078150c56d9fd0e4fd4d (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.texi | 49 |
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 | |||
| 23301 | provided by @code{(gnu services dbus)} and @code{(gnu services desktop)} | 23301 | provided by @code{(gnu services dbus)} and @code{(gnu services desktop)} |
| 23302 | are described below. | 23302 | are described below. |
| 23303 | 23303 | ||
| 23304 | @deffn {Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()] @ | 23304 | @defvar dbus-root-service-type |
| 23305 | [#:verbose?] | 23305 | Type for a service that runs the D-Bus ``system bus''. |
| 23306 | Return a service that runs the ``system bus'', using @var{dbus}, with | 23306 | @footnote{@uref{https://dbus.freedesktop.org/, D-Bus} is an inter-process |
| 23307 | support for @var{services}. When @var{verbose?} is true, it causes the | 23307 | communication facility. Its system bus is used to allow system services |
| 23308 | @samp{DBUS_VERBOSE} environment variable to be set to @samp{1}; a | 23308 | to communicate and to be notified of system-wide events.} |
| 23309 | verbose-enabled D-Bus package such as @code{dbus-verbose} should be | 23309 | |
| 23310 | provided as @var{dbus} in this scenario. The verbose output is logged | 23310 | The value for this service type is a @code{<dbus-configuration>} record. |
| 23311 | to @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 |
| 23314 | facility. Its system bus is used to allow system services to communicate | 23314 | Data type representing the configuration for @code{dbus-root-service-type}. |
| 23315 | and 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 | 23318 | Package object for dbus. |
| 23319 | and 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 | 23321 | List of packages that provide an @file{etc/dbus-1/system.d} directory |
| 23322 | containing additional D-Bus configuration and policy files. | ||
| 23323 | For example, to allow avahi-daemon to use the system bus, @var{services} | ||
| 23324 | must be equal to @code{(list avahi)}. | ||
| 23325 | |||
| 23326 | @item @code{verbose?} (default: @code{#f}) (type: boolean) | ||
| 23327 | When @code{#t}, D-Bus is launched with environment variable | ||
| 23328 | @samp{DBUS_VERBOSE} set to @samp{1}. A verbose-enabled D-Bus package | ||
| 23329 | such as @code{dbus-verbose} should be provided to @var{dbus} in this | ||
| 23330 | scenario. 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 | ||
