[systemd-devel] Restarting a service as user instead as root

Cecil Westerhof cldwesterhof at gmail.com
Mon Aug 13 10:11:46 UTC 2018


2018-08-13 11:28 GMT+02:00 Cecil Westerhof <cldwesterhof at gmail.com>:

> 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, but I like
to be prepared when it 'suddenly' becomes important.

I think I go for the sudo solution. Was thinking about that already, but
was wondering if I overlooked something.

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


More information about the systemd-devel mailing list