The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kill process ust UNIX for Advanced & Expert Users 1 11-27-2007 01:06 PM
kill(0,-9) don't kill the process umen High Level Programming 9 06-19-2007 06:09 AM
how to start a process and make it sleep for 5 mins and then kill that process shrao Shell Programming and Scripting 6 03-27-2007 12:54 PM
Process KILL rkrgarlapati Shell Programming and Scripting 2 09-22-2006 05:07 AM
About kill process zetadhell HP-UX 1 08-28-2006 04:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-11-2006
VijayHegde VijayHegde is offline
Registered User
  
 

Join Date: May 2006
Posts: 3
Question When kill doesnt work, how to kill a process ?

Hi All,

I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.

How can i terminate this daemon ? ? ?

Regards,
Vijay Hegde
  #2 (permalink)  
Old 05-11-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
If it has died and is now a zombie, killing the parent process will cause it to be re-parented to init which will reap it. But if it is sleeping at a high kernel priority, the only general answer is to reboot the system. Since you're on HP-UX, you should use glance to examine the process and determine what it is waiting for. Then there is some chance that you can correct it. For example, if it is trying to close a tape drive that has been powered off, bringing the tape drive back online may allow the close to succeed. Or maybe it is trying to write to /dev/console and someone typed an X-off (control s), so typing an X-on (control q) may allow the write to finish. If it is doing disk i/o to an NFS mounted filesystem with nointr, fixing the NFS server or the network may do it. Or maybe it is a bug in the kernel and so you want to identify what resource it is waiting for and then check for patches that look applicable. This won't help kill the particular process you have now, but patching the kernel would insure it doesn't keep on happening.
  #3 (permalink)  
Old 05-11-2006
VijayHegde VijayHegde is offline
Registered User
  
 

Join Date: May 2006
Posts: 3
Exclamation Restarted...

Thank you for your reply. I had reboted the server.. but was unable to get the root cause. There was no disk problem, it was using NFS nor was waiting for any other i/o. It was using around 90% CPU and was in running state.

I was unable to get what was happening.

Vijay Hegde
  #4 (permalink)  
Old 05-12-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
Kinda hard to tell what process was the parent, since it obviously ended and you only have a ppid to go by, and unless these are recorded... anyway, net time, try the wait command. I've seen times up to 20 minutes until the zombie goes away, but it beats rebooting.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0