__ From: Mantas Mikulėnas
> Sent: Monday, August 13, 2018 7:13 PM To: Deepan
> Muthusamy Cc: Systemd Subject: Re: [systemd-devel] systemd service
> not connecting to session dbus
>
> On Mon, Aug 13, 2018 at 3:37 PM Deepan Muthusamy
> mailto:deepan.mu
From: Mantas Mikulėnas
Sent: Monday, August 13, 2018 7:13 PM
To: Deepan Muthusamy
Cc: Systemd
Subject: Re: [systemd-devel] systemd service not connecting to session dbus
On Mon, Aug 13, 2018 at 3:37 PM Deepan Muthusamy
mailto:deepan.muthus...@tcs.com>> wrote:
My application has to commu
On Mon, Aug 13, 2018 at 3:37 PM Deepan Muthusamy
wrote:
>
> My application has to communicate to both system dbus and session dbus and
> I want to start my application through systemd. How to do that?
>
Everything can use the system bus, but only applications belonging to the
session can use
e: Mon, 13 Aug 2018 07:17:51 +
From: "Deepan Muthusamy"
To: "systemd-devel@lists.freedesktop.org"
Subject: [systemd-devel] systemd service not connecting to session
dbus
Message-ID: <1534144671090.92...@tcs.com>
Content-Type: text/plain; charset="
There are two types of systemd instances
* system instance (PID1) which controls the machine as a whole
* user instances that are started when the user logs in.
You seem to have a system service (started by the system session). A
system service can't (easily) access the user bus.
The session
I have an application which has to communicate with session dbus. If I start my
application binary manually or start using Init.d, it is connecting to session
d-bus.
But if I start my application through systemd, it is failing to start. I tried
to start using systemctl start my-service-name,