How to restart a systemctl service from within the process

Karl Auer kauer at biplane.com.au
Mon Nov 23 09:40:13 UTC 2020


On Mon, 2020-11-23 at 09:21 +0000, Colin Law wrote:
> On Sun, 22 Nov 2020 at 15:50, Chris Green <cl at isbd.net> wrote:
> > You can have user processes run and handled by systemctl.
> 
> Does that mean that if I have a service running as a particular user
> that the user can 'systemctl restart' it without using sudo?
> Searching hasn't found anything relevant, likely because I am not
> using the right search terms.

Interested in the answer. I have a service running as a user "tomcat",
in that the service file has user and group statements, but I can't
manage it other than with sudo.

Someone in this thread said one could manage non-root service units
without sudo; interested in how that works. Not sure it will help you
if node-red has to run as root.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D







More information about the ubuntu-users mailing list