Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On Linux killall lets you killall all processes matching a name.

On Solaris killall kills all processes.

To make matters worse, I used the command on a sever with a hung console -- so it didn't apply immediately, but later in the middle of the day the console got unhung and the main database server went down.

Explaining that this was an earnest error and not something malicious to the PHBs was somewhat ... delicate. "So why did you kill all the processes?" "Because I didn't expect it to do that." "But the command name is kill all?" ...



Genuine question: what's the usefulness of Solaris' default behavior? Why kill all processes?


It's used in the Solaris init scripts for shutdown, shortly before the system tries to unmount all mounted disk volumes.

I made the same mistake nullc made once, as I was more accustomed to linux than solaris. That was after hours and the effect was immediate, but it was still a pretty jarring and memorable moment.


I oversaw a Solaris machine for a very short period, and never got any reason to use it. But if you can change the signal, sending SIGHUP into everything looks like reasonable thing to do.

Still, it's not something common enough to deserve it's own program.


Yep, and as weird as killall on solaris is-- the naming of killall on linux is kinda weird. It's "killbyname".


I don’t know? ‘Killall node’ sounds like kill all node processes to me.


HPUX also did the same if I recall. Had to be careful swapping back between it and Linux.


I assume it’s part of the shutdown process. Makes sense in a way: kill -> killall.


Sometimes I use kill -15 -1 on Linux to log me out, but obviously not as root.


PHB?



Pointy Haired Bastards




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: