How to STOP Webrick or Mongrel daemon?

So, you’ve started webrick/mongrel in daemon mode and for some reason you need to kill the process. But how to do it? Mongrel leaves his pid in tmp/pids so you can go there and find out what the PID is. For webrick you don’t have that choice. One choice that you do have is listing procesess and filtering for ruby.

ps aux | grep ruby

There you can see PID that you need and type

kill -9 PID

You don’t need -9 for mongrel, but you do for webrick.