How to restart a systemctl service from within the process

Chris Green cl at isbd.net
Sun Nov 22 15:48:17 UTC 2020


On Sun, Nov 22, 2020 at 11:42:53PM +1100, Karl Auer wrote:
> On Sun, 2020-11-22 at 11:54 +0000, Colin Law wrote:
> > I am not sure there
> > is any way of telling node-red to exit
> 
> Signal it - KILL, TERM, HUP. To quote Dave Lister (approximately) "one
> swift knee in the happy sack and it'll drop like all the rest".
> 
> > plus I don't really want to
> > have to override the standard service file for node-red
> 
> Add a service file for your project and make it depend on node-red?
> 
> The main reason I don't like having to run systemctl is that it means
> the project has to run as root. Maybe it has to anyway, I know zip
> about node-red.
> 
You can have user processes run and handled by systemctl.

-- 
Chris Green




More information about the ubuntu-users mailing list