mongrel_proctitle like support in Unicorn

Jamie Wilkinson jamie at tramchase.com
Tue Jun 22 19:14:03 EDT 2010


On Jun 17, 2010, at 4:21 PM, Eric Wong wrote:

>>> http://coderack.org/users/arya/entries/3-rack-proctitle
>> 
>> FWIW this doesn't seem to work out-of-box with Unicorn. Eric, do you know
>> offhand if it's possible to use middleware to call unicorn's proc_name? I'd love
>> to be able to watch what my unicorns are doing in realtime
> 
> That coderack link no longer works for me, but I see no reason why
> Rack::ProcTitle in rack-contrib wouldn't work (based on my reading of
> the code):
> 
> http://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/proctitle.rb

This works great . Thanks Eric.

For anyone else: I just dropped the above into lib/rack_proctitle.rb and added "use Rack::ProcTitle" in my Rails config.ru

Now me & my unicorns are like totally BFFs

-jamie


More information about the mongrel-unicorn mailing list