LinuxQuestions.org
Review your favorite Linux distribution.
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 05-01-2003, 02:24 AM   #1
i_is_cat
Member
 
Registered: Apr 2003
Distribution: redhat 7.2
Posts: 159

Rep: Reputation: 30
killing pids


i don't know what is wrong but there seems to be something on my computer that is eating up all the cpu i check it out in top and it says something called "onlyservice" and when i try to kill the pid it tells me there is no such process and then changes the pid number i JUST reinstalled redhat 7.2 and it keeps doing this i don't know what it is or how to stop it but its severely incapacitating my system and i need help PLEASE
 
Old 05-01-2003, 04:09 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
you could rename the onlyservice executable to keep
it from running or remove it from /etc/rc.d/rc3.d,
assuming it is a normal service.
the service itself is probably in /etc/rc.d/init.d
 
Old 05-01-2003, 05:36 AM   #3
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Use "killall" instead of kill,

killall onlyservice
 
Old 05-01-2003, 06:09 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
You could of course also do:

kill -9 `pidof onlyservice`
 
Old 05-01-2003, 09:45 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
it looks like the service keeps opening new instances
of itself, and the old one exits, so killall wouldn't do it
i don't think. killall is always my first impulse too, but
i don't think that would do it here.
do you think the service is a cronjob?

Last edited by whansard; 05-01-2003 at 09:48 AM.
 
Old 05-01-2003, 10:31 AM   #6
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Quote:
Originally posted by whansard
it looks like the service keeps opening new instances
of itself, and the old one exits, so killall wouldn't do it
i don't think. killall is always my first impulse too, but
i don't think that would do it here.
do you think the service is a cronjob?
I thought kill, kill -9 and killall were basically the same type of thing? Am I wrong? Why wouldn't killall 'not do here'? Unless you mean because the service keeps popping back up.
 
Old 05-01-2003, 12:07 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
it looks like a service that keeps opening new instances
for whatever reason. he said he tried to kill the job, but
it had already disappeared, and reappears under a new
id. some programs do that.
killall and kill send signal 15 i think, unless you specify
a different one, like 9. killall -9 onlyservice would be the
strongest killall he could send.
 
  


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
Process and thread PIDs msriram_linux Programming 4 11-27-2004 12:43 PM
Parent PIDs Sinope Linux - Newbie 6 10-06-2004 12:46 AM
C++ and PIDs dbcoder Programming 1 07-15-2004 09:58 PM
killing pids obtained from ps command sanjith11 Programming 9 06-30-2004 01:13 PM
Multiple PIDs ? Si|entKey Linux - General 0 03-28-2001 12:03 AM


All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
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