How to override "Worker#proc_name" method?

Eric Wong normalperson at yhbt.net
Wed Dec 23 15:39:27 EST 2009


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

-- 
Eric Wong


More information about the mongrel-unicorn mailing list