Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kill things that just won't die
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Wed Dec 04, 2002 7:48 am    Post subject: Kill things that just won't die Reply with quote

I am trying to kill soffice-bin because it keeps failing to open up. I tried kill and then the process id. I switched to root and did the same. It won't die. Is there anything stronger than kill.

I know restarting will fix it, but I run linux o I don't have, to restart. It is a sick joy I know. If t wasn't for playing with kernels I would hopefully never restart. Take that windows.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Wed Dec 04, 2002 7:54 am    Post subject: Reply with quote

kill -9 pid is the strongest you can get... (or in this case, killall -9 soffice-bin, with killall you often save to look up the pid)

Hth,
Larde.
_________________
Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
Back to top
View user's profile Send private message
really
Guru
Guru


Joined: 27 Aug 2002
Posts: 430
Location: nowhere

PostPosted: Wed Dec 04, 2002 1:13 pm    Post subject: Reply with quote

kill everyprocces that is started by it, if any first then it.
if its a zombie then you cant kill it. i think.
never happend to me :)
_________________
NoManNoProblem

Get lost before you get shot.
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Wed Dec 04, 2002 10:02 pm    Post subject: Reply with quote

Correct. AFAIK, zombies can only be gotten rid of in two ways -- reboot or direct modification of something in /proc 8O

Kill -9 will fix ya up; while we're on the subject, who uses psg? A production system I worked on a couple of summers aliased psg with "ps -ef | grep". You could then execute "psg soffice" and it would save you several keystrokes. Anyone?

Code:

# alias psg="ps -ef | grep"
# psg init
root         1     0  0 Nov21 ?   
root      2548  2486  0 16:01 pts/0    00:00:00 grep init    00:00:16 init


Of course, it can be modified to filter out itself, but then you run into more and more load.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Dec 05, 2002 12:19 am    Post subject: Reply with quote

There is another way without rebooting.

Some times kill will not get rid of the process, most likely it is hoilding a lock somewhere.

What you can do is to change runlevel to single user and then back again.

Log out all users and log in as root.
Type: telinit s
This will change the system to a single user system and stop all server processes running in multiuser level.
Log in as root and type:
telinit 3

This will bring you back into multiuser mode.

Erik
Back to top
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Thu Dec 05, 2002 9:02 am    Post subject: Reply with quote

Larde wrote:
kill -9 pid is the strongest you can get... (or in this case, killall -9 soffice-bin, with killall you often save to look up the pid)

Hth,
Larde.


Kill -9 [pid] worked just fine :lol:

Thanking you all for the help :lol:

/The Shadow Surfer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum