<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Aug 14, 2018 at 9:46 AM deepan muthusamy <<a href="mailto:deepan.m2903@gmail.com">deepan.m2903@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I am not that much clear about booting process, but I will explain what I want to do, please help me with this.<div dir="auto"><br></div><div dir="auto">My system has no login user except root. I logged in as root.</div><div dir="auto"><br></div><div dir="auto">I have an application called A1 which has to communicate to systemd to monitor other process such as A2 ,A3 and A4.</div><div dir="auto"><br></div><div dir="auto">Process A2, A3 ,A4 are communicating to A1 through session dbus. This is the implementation.</div><div dir="auto"><br></div><div dir="auto">But all process has to be started at boot time as services under user defined target levels which I know how to do.</div><div dir="auto"><br></div><div dir="auto">This is my requirement.</div><div dir="auto"><br></div><div dir="auto">My problem is iam not able to start  as service since when my application trying to get session dbus connection, it  is failing.</div><div dir="auto"><br></div><div dir="auto">I come to know that it is possible from your previous replies. But I don't know how to do that. Can you please help me this?</div></div></blockquote><div><br></div><div>First find out what is starting the session bus and how. You're saying that existing processes (A2, A3, A4) are already started via systemd *and* already communicate on the session bus. So take a look at them and figure out how *they* find the session bus. Then just use the same method.</div><div><br></div><div>For example, if your system is configured such that the session bus is started through its own service and has a fixed address (i.e. the same on every boot), then you can specify that address through the $DBUS_SESSION_BUS_ADDRESS environment variable, or even pass it directly to the DBus library you're using.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>