LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-07-2010, 02:11 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,008

Rep: Reputation: 30
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.
 
Old 08-07-2010, 02:41 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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.
 
Old 08-07-2010, 03:01 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,269
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
+ if it's a sane SysV init script it should use the /var/run/ PId to get the right process context.
 
Old 08-07-2010, 10:09 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,108

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't kill firefox process on slack 12.0 (zombie) Tim Johnson Slackware 8 05-28-2010 07:03 AM
Kill child process problem. No matter what i try cant stop pid becoming a zombie?? ajb181 Linux - Software 1 11-15-2009 05:36 PM
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
how to kill zombie process bharatlalgupta Red Hat 1 06-18-2009 10:17 AM
how to kill zombie process mokku Linux - Server 5 10-25-2007 09:21 PM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration