I have the following output via ps aux | grep node:
karlm 17551 1.4 0.7 1000592 93604 pts/2 Sl 09:54 0:01 node -r babel-register -r babel-polyfill src/index.js --config=c.json
I try to kill this with killall node.
It doesn't kill the process though?
1 Answer
The default signal sent by killall is SIGTERM
The following command uses SIGKILL which sometimes is needed in order to kill a process:
killall -s KILL node
More info killall man
killall sends a signal to all processes running any of the specified commands. If no signal name is specified, SIGTERM is sent.
Options:
-s, --signal
Send this signal instead of SIGTERM.