[systemd-devel] Start, stop en restart service by the user that is used to run the service script
Lennart Poettering
lennart at poettering.net
Fri Apr 1 19:23:56 UTC 2016
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?
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.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list