How to Kill a Stubborn Process in Linux

killprocess

I've an annoying process that won't die:

ps -A | grep "nzbget" 

gives me:

11394 pts/3    00:00:00 nzbget

If I try:

pkill nzbget (or 11394)

…I get no response and the process is still alive, top gives me:

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
11394 asystem+  20   0  125448   6244   4984 T   0.0  0.1   0:00.00 nzbget

I run nzbget with 'nzbget -s', if I do this after it is running (and I've tried to stop it), I get a [binding socket failed] error and all I can do is reboot.

How can I kill this off without rebooting?

Best Answer

You can use kill -9 11394 to kill the process completely ungracefully, this will invoke the following:

From The 3 most important "kill" signals on the Linux/UNIX command line:

The kernel will let go of the process without informing the process of it. An unclean kill like this could result in data loss. This is the "hardest", "roughest" and most unsafe kill signal available, and should only be used to stop something that seems unstoppable.

Related Question