Geuis
Geuis

Reputation: 42277

Mac OS X terminal killall won't kill running process

I have an instance of lighttpd running. When I do "ps -axc" the process is listed as

"614 ?? 0:00.15 lighttpd"

But when I do "killall lighttpd" I get

No matching processes belonging to you were found

I'm on Mac OS X 10.5.6. Is there something I'm missing?

Upvotes: 15

Views: 43622

Answers (5)

红日初升
红日初升

Reputation: 152

Try

sudo kill -9 `pgrep lighttpd`

Upvotes: 2

Vadim
Vadim

Reputation: 17

It works: killall -u root -c lighttpd

Upvotes: 0

GK
GK

Reputation:

Is the task written in the ps aux list in brackets? If so, it is a zombie, it is waiting some I/O task, which probably never completes. You can't kill it as far as I know.

Upvotes: 5

Andrew Jaffe
Andrew Jaffe

Reputation: 27107

As per the other response, if it's not your process, prepend sudo if you're an administrator. If not, you may be out of luck.

Also, try sudo killall -9 lighttpd which sends the specific signal KILL instead of TERM.

Just to be sure you can also try sudo kill -9 614 using the PID.

Upvotes: 26

Brian Agnew
Brian Agnew

Reputation: 272367

Does it belong to you ? If you do

ps aux | grep lighttpd

that will give you the user id associated with that process (I'm guessing it's chowned to another user)

Upvotes: 2

Related Questions