How to override "Worker#proc_name" method?

Iñaki Baz Castillo ibc at aliax.net
Thu Dec 24 03:55:08 EST 2009


El Miércoles, 23 de Diciembre de 2009, Eric Wong escribió:
> Iñaki Baz Castillo <ibc at aliax.net> wrote:
> > Hi, I'm trying to override Unicorn::HttpServer::Worker#proc_name method.
> > For that, I've copied bin/unicorn with other name and added the following
> > code before "Unicorn::Launcher.daemonize! if daemonize" line:
> >
> > module Unicorn
> >   class HttpServer
> >     class Worker
> >       def proc_name(tag)
> >           ... some proc name ...
> >       end
> >     end
> >   end
> > end
> 
> Hi, proc_name is in HttpServer, not Worker

Great! oh my god... I was trying everything and didn't realize of that XDD

Thanks a lot, it just works :)
 


-- 
Iñaki Baz Castillo <ibc at aliax.net>


More information about the mongrel-unicorn mailing list