forever stop does not really stop
Opened this issue · 9 comments
Hi
same situation as in #1001: index.js contains
setInterval(() => console.log('Ping!'), 5000);
forever start index.js
starts the script and the monitoring process. forever stop 0
seems to only stop the monitoring process - it removes the running process from forever list
though, but the node process with index.js keeps running. On each try there's another one...
(using Windows 10, nodejs 10.6.0, forever 0.15.3)
I encount the same problem, do you have solution.
me to
me too on centos7.4
me too
I also have this problem.
i use command to stop node:
- kill foreverpid
- kill id
- kill id
twice kill id
@jeffrson Looks like --killTree
is not supported on Windows 😢
https://github.com/foreversd/forever-monitor/blob/master/lib/forever-monitor/common.js#L41
ps axf | grep <process name> | grep -v grep | awk '{print "kill -9 " $1}' | sh
- This will search the list by the
process name
, - Removes the
grep
command from that results list - Create and print the
kill
command for given process name by PID - Running the
kill
command
Same - tried on both Windows 7 and CentOS 7.7 - monitor will stop but not the monitored process.
I'm getting this problem now because I upgraded from v1.0.1 - I can confirm that both the monitor and monitored process under v1.0.1 (and other earlier versions) would stop. I've tried a bunch of different configurations and none of them stop the child processes anymore.