I'm starting a process with the cap_kill capability and use this process to kill other services. However I'd like to be able to restart these service with a systemctl restart xxx

Is there a capability to allow this without having to run it with sudo?

1 Answer 1


To allow a non-root user to restart a system service, you can either use sudo (which you say you want to avoid), or PolKit.

Please refer to this answer for instructions on how to configure PolKit rules.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .