How to kill the pm2 –no-daemon process

You can try:

pm2 kill

or find the running PM2 process with:

ps aux | grep PM2

then kill with:

kill -9 [pid]

The -9 switch sends the KILL signal to the process as opposed to the default interrupt (INT or SIGINT) signal and is equivalent to -KILL or -SIGKILL. Interrupt is a less invasive way and you could try that first to let the process gracefully exit, however, if it doesn’t respond to that, the kill signal should result in an immediate termination (unless the process is zombie).

Leave a Comment

tech