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,
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 bus
I have a service that is run as a different user as root. But only root can
restart the service. Is there a way to make 'systemctl restart' work for
the user that runs the service?
--
Cecil Westerhof
___
systemd-devel mailing list
systemd-devel@lists.fr
Am 13.08.2018 um 11:28 schrieb Cecil Westerhof:
> I have a service that is run as a different user as root. But only root
> can restart the service. Is there a way to make 'systemctl restart' work
> for the user that runs the service?
not for system services
just because a service binary drops
Am Montag, den 13.08.2018, 11:28 +0200 schrieb Cecil Westerhof:
> I have a service that is run as a different user as root. But only
> root can
> restart the service. Is there a way to make 'systemctl restart' work
> for
> the user that runs the service?
Hi,
you can either define a sudo-rule or y
On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> I have a service that is run as a different user as root. But only root can
> restart the service. Is there a way to make 'systemctl restart' work for
> the user that runs the service?
You could simply add some Sudo rules allowing the user to perform t
2018-08-13 11:28 GMT+02:00 Cecil Westerhof :
> I have a service that is run as a different user as root. But only root
> can restart the service. Is there a way to make 'systemctl restart' work
> for the user that runs the service?
>
Thanks for the answers. At the moment it is not very important,
On Mon, Aug 13, 2018 at 11:51:46AM +0200, Silvio Knizek wrote:
> Am Montag, den 13.08.2018, 11:28 +0200 schrieb Cecil Westerhof:
> > I have a service that is run as a different user as root. But only
> > root can
> > restart the service. Is there a way to make 'systemctl restart' work
> > for
> > t
2018-08-13 11:51 GMT+02:00 Michael Chapman :
> On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> > I have a service that is run as a different user as root. But only root
> can
> > restart the service. Is there a way to make 'systemctl restart' work for
> > the user that runs the service?
>
> You coul
On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> 2018-08-13 11:51 GMT+02:00 Michael Chapman :
>
> > On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> > > I have a service that is run as a different user as root. But only root
> > can
> > > restart the service. Is there a way to make 'systemctl restart' w
2018-08-13 12:52 GMT+02:00 Michael Chapman :
> On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> > 2018-08-13 11:51 GMT+02:00 Michael Chapman :
> >
> > > On Mon, 13 Aug 2018, Cecil Westerhof wrote:
> > > > I have a service that is run as a different user as root. But only
> root
> > > can
> > > > rest
On Mon, 13 Aug 2018 at 12:44:48 +0200, Cecil Westerhof wrote:
> I tried to put this in:
> /etc/polkit-1/rules.d/10-auth.rules
...
> I am using Debian 9.
Debian uses an old version of polkit (with most of the changes from
newer versions backported) due to maintainability concerns about the
use
-
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/systemd-devel/attachments/20180813/897d3337/attachment-0001.html>
--
Message: 2
Date: Mon, 13 Aug 2018 10:10:21 +0200
From: Jérémy Rosen
To: systemd-devel@lists.freedesktop.org
Sub
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 the
My application is a user created application which will interact with systemd
to monitor other running process, so I have to connect to system dbus. At the
same time My application has to communicate with other session applications, so
Iam communicating using session bus.Also My application has
13.08.2018 17:38, Deepan Muthusamy пишет:
> My application is a user created application which will interact with
> systemd to monitor other running process, so I have to connect to
> system dbus. At the same time My application has to communicate with
> other session applications,
You seem to ha
I have an application which has to communicate with systemd to monitor
other process and it has to communicate with other session applications ,
so my application is designed to communicate to both session dbus and
system dbus. And also my application has to be started as service by
systemd. How to
On Tue, Aug 14, 2018 at 7:21 AM deepan muthusamy
wrote:
> I have an application which has to communicate with systemd to monitor
> other process and it has to communicate with other session applications ,
> so my application is designed to communicate to both session dbus and
> system dbus. And a
I am not that much clear about booting process, but I will explain what I
want to do, please help me with this.
My system has no login user except root. I logged in as root.
I have an application called A1 which has to communicate to systemd to
monitor other process such as A2 ,A3 and A4.
Proces
On Tue, Aug 14, 2018 at 9:46 AM deepan muthusamy
wrote:
> I am not that much clear about booting process, but I will explain what I
> want to do, please help me with this.
>
> My system has no login user except root. I logged in as root.
>
> I have an application called A1 which has to communicat
20 matches
Mail list logo