]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: systemd-stdio-bridge doesn't connect "two busses"
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Feb 2022 14:57:00 +0000 (15:57 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 4 Feb 2022 17:43:44 +0000 (17:43 +0000)
In D-Bus, clients connect to a bus (the usual case), or use direct
questions to each other (the unusual case). A bus is a program one can
connect to and implemented by dbus-daemon or dbus-broker. HOwever,
busses never connect between each other, that doesn't exist. Hence don't
claim so.

This is probably confusion about the fact that sd-bus calls D-Bus
connection objects just "sd_bus" for simplicity, given they are used in
99% of the cases to connect to a bus — only in exceptional cases they
are used for direct connections between peers without involving a bus.

Follow-up for b7bb58ef70b0c876941a1c31ed4e2f5f1dc5ed0e

man/systemd-stdio-bridge.xml
src/stdio-bridge/stdio-bridge.c

index 002a91b12998c270cf6015c326bbff9af348de4d..0dce5659d7cc0f5895c9a63d0611e345f2addc4b 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><command>systemd-stdio-bridge</command> implements a proxy for a D-Bus endpoint. It expects to
-    receive an open connection to a bus when started, and will also connect to a (different) bus as a
-    client. It will then act as a server on the first connection, and forward messages between the two
-    busses. This program is suitable for socket activation: the first connection may be a pipe or a socket
-    and must be passed as either standard input, or as an open file descriptor according to the protocol
-    described in
+    <para><command>systemd-stdio-bridge</command> implements a proxy between STDIN/STDOUT and a D-Bus bus. It
+    expects to receive an open connection via STDIN/STDOUT when started, and will create a new connection to
+    the specified bus. It will then forward messages between the two connections. This program is suitable
+    for socket activation: the first connection may be a pipe or a socket and must be passed as either
+    standard input, or as an open file descriptor according to the protocol described in
     <citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>. The
     second connection will be made by default to the local system bus, but this can be influenced by the
     <option>--user</option>, <option>--system</option>, <option>--machine=</option>, and
index 33701e775eadcdb26794f6ac3bf67383aa16684b..c851059a0955a7713dc7cc647859375bd50c21bf 100644 (file)
@@ -27,7 +27,7 @@ static bool arg_user = false;
 
 static int help(void) {
         printf("%s [OPTIONS...]\n\n"
-               "Forward messages between two D-Bus busses via a pipe or socket.\n\n"
+               "Forward messages between a pipe or socket and a D-Bus bus.\n\n"
                "  -h --help              Show this help\n"
                "     --version           Show package version\n"
                "  -p --bus-path=PATH     Path to the bus address (default: %s)\n"