Debian Codegraph @

docs/dbus-broker-launch.rst

raw
1 ==================
2 dbus-broker-launch
3 ==================
4
5 ----------------------------------
6 Launcher for D-Bus Message Brokers
7 ----------------------------------
8
9 :Manual section: 1
10 :Manual group: User Commands
11
12 SYNOPSIS
13 ========
14
15 | ``dbus-broker-launch`` [ OPTIONS ]
16 | ``dbus-broker-launch`` ``--version``
17 | ``dbus-broker-launch`` ``--help``
18
19
20 DESCRIPTION
21 ===========
22
23 **dbus-broker-launch** is a launcher for **dbus-broker**, spawning and managing
24 a D-Bus Message Bus. The launcher aims to be fully compatible to the D-Bus
25 reference implementation **dbus-daemon**\(1), supporting the same configuration
26 syntax and runtime environment.
27
28 Each instance of **dbus-broker-launch** manages exactly one message bus. Each
29 message bus is independent. The configuration file can either be specified via
30 the command-line, or the default is picked from */usr/share/dbus-1/*. Nearly
31 all of the configuration attributes are supported. See **dbus-daemon**\(1) for
32 details on the configuration syntax.
33
34 OPTIONS
35 =======
36
37 The following command-line options are supported. If an option is passed, which
38 is not listed here, the launcher will deny startup and exit with an error.
39
40 -h, --help print usage information and exit immediately
41 --version print build-version and exit immediately
42 --audit enable logging to the linux audit subsystem
43 (no-op if audit support was not compiled in;
44 **Default**: off)
45 --config-file=PATH config file to use (**Default**:
46 */usr/share/dbus-1/{system,session}.conf*)
47 --scope=SCOPE select scope to run in (one of: *system*,
48 *user*; **Default**: *system*)
49
50 LOGGING
51 =======
52
53 By default, **dbus-broker-launch** logs messages to the system journal. The
54 messages are augmented with lots of metadata, so be sure to check the
55 additional journal-fields. The human-readable log-message is intentionally kept
56 short.
57
58 On startup and shutdown, the launcher logs initial messages that contain
59 information on the parsed configuration files and service definitions. No other
60 log-messages are generated, except those originating in **dbus-broker**\(1).
61
62 SCOPE
63 =====
64
65 Unlike **dbus-daemon**\(1), **dbus-broker-launch** activates all services as
66 systemd units. Services that already come with a systemd-unit are activated as
67 usual, but services that lack a systemd unit are activated as transient unit,
68 with an ad-hoc unit-file generated at runtime. This guarantees that all
69 services run in a well-defined environment.
70
71 The **--scope** parameter defines which systemd instance the launcher shall use
72 to activate services. In case of *system*, the launcher will use the system
73 instance of systemd. In case of *user*, the user instance is used instead.
74
75 Furthermore, the selected scope also defines which configuration file is used
76 if none is specified on the command-line.
77
78 The selected scope does not have any further effect. It is only needed to
79 define the activation environment for loaded service definitions. If no
80 activatable services are declared, the scope will have no effect at all.
81
82 SOCKETS
83 =======
84
85 The socket to listen on for client connections must be created and passed to
86 **dbus-broker-launch** by its parent process. The protocol must follow the
87 socket-activation as defined by **systemd.socket**\(1). Only a single socket is
88 supported right now.
89
90 Additional *<listen>%path%</listen>* attributes in the configuration are
91 ignored.
92
93 PRIVILEGES
94 ==========
95
96 The launcher needs read-access to its configuration file. Other than that, no
97 privileges are needed. If the *<user>%user%</user>* configuration attribute is
98 used, the launcher will drop privileges when executing **dbus-broker**.
99
100 If activatable services are declared, the launcher will need access to the
101 corresponding systemd instance. The launcher must be allowed to spawn transient
102 units, as well as manage units declared in the service definitions.
103
104 SEE ALSO
105 ========
106
107 ``dbus-daemon``\(1)
108 ``dbus-broker``\(1)