[systemd-devel] Fwd: Start, stop en restart service by the user that is used to run the service script

Cecil Westerhof cldwesterhof at gmail.com
Sat Apr 2 00:04:32 UTC 2016


Went to the wrong address. :'-(

---------- Forwarded message ----------
From: Cecil Westerhof <cldwesterhof at gmail.com>
Date: 2016-04-02 1:29 GMT+02:00
Subject: Re: [systemd-devel] Start, stop en restart service by the user
that is used to run the service script
To: Lennart Poettering <lennart at poettering.net>



2016-04-01 21:23 GMT+02:00 Lennart Poettering <lennart at poettering.net>:

> On Thu, 24.03.16 08:19, Cecil Westerhof (cldwesterhof at gmail.com) wrote:
>
> > I have a service that is run as a normal user. I can ask a status of this
> > service, but would it also be possible to start, stop en restart the
> > service by the user itself?
>
> Please elaborate. Do you mean you use User= in the unit file?
>

​Yes, that is what I mean.​




> You can use PolicyKit to define arbitrary policies to allow
> unpriviliged users any kind of operation on specific units. Please
> check PolicyKit documentation for details on this.
>

​I will do that. Merci.​

-- 
Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160402/e240435e/attachment.html>


More information about the systemd-devel mailing list