LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kill zombie process (https://www.linuxquestions.org/questions/linux-newbie-8/kill-zombie-process-824821/)

qwertyjjj 08-07-2010 02:11 PM

kill zombie process
 
I have a process that I cannot kill with kill -9
Any ideas on how to go about this?


[root keys]# ps aux | grep openvpn
nobody 3316 2.2 0.0 0 0 pts/2 Z 19:19 1:05 [openvpn] <defunct>


It is an openvpn process but I cannot retsrat the service as I alreday have another openvpn service running on the server so when I do openvpn service restart, it won;t know which service to restart.

druuna 08-07-2010 02:41 PM

Hi,

You cannot get rid of the defunct (zombie) process by restarting the service. You need to reboot your machine.

A few defunct processes can occur over time and you don't need to reboot every time you see one. They aren't active and only take up very little space. If you get dozens of them over a short time period you need to look into the reason why this happens.

Hope this helps.

unSpawn 08-07-2010 03:01 PM

+ if it's a sane SysV init script it should use the /var/run/ PId to get the right process context.

btmiller 08-07-2010 10:09 PM

You don't need to reboot to kill a zombie process. Zombies are processes that are just haven't been wait(2)'ed on by their parents -- often because the parent has hung (or there's a bug somewhere in it). If you kill the parent the zombie will be adopted by init, which will clean it up.


All times are GMT -5. The time now is 11:19 PM.