<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Simon,<br>
<br>
Thank you very much for the answer.<br>
Of course I should mention I need it for LINUX :)<br>
<br>
The --address seems to be a not documented command line parameter (I
couldn't find it in dbus-daemon manual). <br>
I suppose it will override the <listen> token which in that
case can contain any address. Is this correct?<br>
<br>
regards,<br>
<br>
Bogdan <br>
<br>
On 12/2/2013 19:30, Simon McVittie wrote:
<blockquote cite="mid:529CD1B7.2060308@collabora.co.uk" type="cite">
<pre wrap="">On 02/12/13 17:48, Bogdan Lotko wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is it possible to use environment variables in D-Bus daemon
configuration file?
</pre>
</blockquote>
<pre wrap="">
No, but see below.
</pre>
<blockquote type="cite">
<pre wrap="">In particular I'd like to pass the host TCP address and the port number,
or the whole address line to be placed in the <listen> tag.
</pre>
</blockquote>
<pre wrap="">
I think you can use something like:
dbus-daemon --address="tcp:host=10.11.12.13,port=65432"
(which is how systemd makes it listen on the systemd: pseudo-address).
Or in fact, on Unix, you could pass in an already-listening TCP socket
using the systemd LISTEN_FDS protocol, and tell it to listen on "systemd:".
FWIW, if you find yourself needing to use TCP addresses (other than
localhost-to-localhost TCP on Windows as a workaround for Windows' lack
of AF_UNIX), you're probably some way outside the use cases that are
actively maintained.
S
_______________________________________________
dbus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<p><b>Bogdan Lotko</b></p>
<a class="moz-txt-link-abbreviated"
href="mailto:b.lotko@chello.at">b.lotko@chello.at</a>
<br>
Phone: +43 1 2852458
<br>
Mobile: +43 676 6615012
</div>
</body>
</html>