<div dir="ltr">Hi, i asked similar question a few weeks ago, and you probably will get a oficial answer soon :P, but in a nutshell would be:<div><br></div><div>/run/systemd/private is a private socket and its meant for systemd tools to communicate with systemd even if dbus daemon is down. this is specially true during boot and shutdown, but you should never try to use the private sockets for anything, always use dbus sockets, because (in Lennard's words, not mine) "<span style="font-size:12.8px">systemd sucks as a bus replacement". </span>if posible, even forget that /run/systemd/private exists :P.</div><div><br></div><div>after playing around a lot with servers i agree with previous statements, and always prefere dbus over private.</div><div><br></div><div>hope that helps.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br>Alvaro<br></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 27, 2017 at 11:16 PM, 千葉幹正 <span dir="ltr"><<a href="mailto:chiba-k@klab.com" target="_blank">chiba-k@klab.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>We have a few questions about systemctl and -H option. </div><div><br></div><div>It looks like systemctl is communicating with /run/systemd/private in order to interact with systemd.</div><div><br></div><div>However, after you log in the connected computer via ssh, it looks like it's trying to control systemd by going through systemd-stdio-bridge when you use systemctl's -H option.</div><div><br></div><div>Instead of going through /run/systemd/private, it looks like systemd-stdio-bridge is going through /run/dbus/system_bus_socket (which is usually created by dbus daemon) in order to control systemd.</div><div><br></div><div>This where we run into the following 2 questions:</div><div><br></div><div>1. Is it necessary to start up dbus daemon on the computer we're connecting to in order to control systemd by using the systemctl -H option?</div><div><br></div><div>2. Are we correct in our understanding that /run/systemd/private exists to control systemctl though the local systemd?</div><div><br></div><div>Why does systemctl use the specialized interface called /run/systemd/private to control systemd?</div><div>Why doesn't systemd-stdio-bridge control systemd via /run/systemd/private like systemctl does?</div><div><br></div><div>Any information you can provide about the above would be much appreciated!</div><div>Thanks in advance for your time and all your help.</div><div><br></div><div>All the best,</div><div><br></div><div>Chiba</div><div>KLab Inc.</div></div>
<br>______________________________<wbr>_________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/systemd-devel</a><br>
<br></blockquote></div><br></div></div>