LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-20-2004, 08:01 PM   #1
didi156
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian, Ubuntu, uCLinux, Android
Posts: 15

Rep: Reputation: 0
kill/killall not working (?)


I'm running a Debian on an old SMP Server, and trying to restart the mldonkey service I needed the kill command because it wasn't done cleanly. But for some reason it gets ignored, see here:

hogwart root # ps -A | grep ml
24232 ? 04:57:03 mlnet
765 ? 00:00:02 mlnet
1174 ? 00:00:02 mlnet
hogwart root # killall mlnet
hogwart root # echo $?
0
hogwart root # ps -A | grep ml
24232 ? 04:57:03 mlnet
765 ? 00:00:02 mlnet
1174 ? 00:00:02 mlnet
hogwart root # kill -9 24232
hogwart root # ps -A | grep ml
24232 ? 04:57:03 mlnet
765 ? 00:00:02 mlnet
1174 ? 00:00:02 mlnet

Strange is also the return-code 0, the manpage says this means that at least 1 process was killed.
I also tried it with another process:

hogwart root # updatedb &
[1] 2740
hogwart root # killall updatedb
hogwart root # ps -ef | grep update
root 0 1 0 Apr28 ? 00:00:42 [kupdated]
root 2740 702 0 01:55 pts/0 00:00:00 /bin/sh /usr/bin/updatedb
root 2754 702 0 01:55 pts/0 00:00:00 grep update


And since kill is a bash builtin I also tried to do it with /bin/kill, but the same.
I don't absolutely have any idea why it behaves like this, hope somebody does.
I may try to reboot, but don't like it since it's running some services (with no problems so long).
 
Old 05-20-2004, 08:31 PM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
try this:

killall -9 mlnet
 
Old 05-21-2004, 12:47 AM   #3
didi156
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian, Ubuntu, uCLinux, Android
Posts: 15

Original Poster
Rep: Reputation: 0
hogwart root # ps -ef | grep ml
mldonkey 24232 1 8 May18 ? 04:57:03 [mlnet]
mldonkey 765 1 0 May20 ? 00:00:02 /usr/bin/mlnet
mldonkey 1174 1 0 May20 ? 00:00:02 /usr/bin/mlnet
root 3725 3710 0 06:51 pts/7 00:00:00 grep ml
hogwart root # killall -9 mlnet
hogwart root # echo $?
0
hogwart root # ps -ef | grep ml
mldonkey 24232 1 8 May18 ? 04:57:03 [mlnet]
mldonkey 765 1 0 May20 ? 00:00:02 /usr/bin/mlnet
mldonkey 1174 1 0 May20 ? 00:00:02 /usr/bin/mlnet
root 3728 3710 0 06:51 pts/7 00:00:00 grep ml
 
  


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
killall...but one? dibblethewrecke Programming 1 05-19-2005 12:31 PM
Alternatives for 'killall' Wallace740 Linux - Newbie 3 03-30-2005 04:21 AM
killall process not working on AS 3.0 skiski Linux - Software 1 08-31-2004 02:11 AM
Killall program bluedude2288 Programming 2 04-12-2004 10:57 PM
kill vs. killall, AIX vs. Linux thebeaglebeagle Linux - Newbie 1 09-24-2003 03:41 AM


All times are GMT -5. The time now is 11:56 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