I'm currently running a few node processes on PM2, but when I stop them with pm2, then run
ps -ef | grep node, it shows the processes as still running.
One of them is an express application that listens on the port the original process did, but most requests end with
Cannot GET /something. Oddly, some requests do respond.
pkill -9 process_name kills that process, but when I list the processes again it shows it as having restarted with a higher PID.
I've tried doing
pm2 kill and then killing the processes, but they keep coming back.