node.jsterminalportsforever

How to kill a process that restarts? (Forever)


I think I accidentally installed Foreverjs somewhere and started it. Every time I kill this process another one takes its place![enter image description here]1

I have no idea where forever might be (or if thats actually whats causing it) because I install it locally.


Solution

  • If it restarts itself it means there is a parent process monitoring. Find the parent process and kill it first ps -o ppid= -p PID.