how to disable the process on a VPS after using
nohup node index.js &
Save the pid to a variable or file. Then kill.
You can get to the pid like this (contact immediately after calling nohup):
$$ - pid nohup
$! - pid node index.js
Kill process by pid - man kill
Source: https://ru.stackoverflow.com/questions/141090/
All Articles
nohup
(screen
,dtach
) is adtach
crutch, and not a normal approach to starting daemons. Edit: found-noticed and rolled into your other question , which is closer to the topic. - drdaeman 2:32 pm