Multiple master processes

Jamie Wilkinson jamie at jamiedubs.com
Mon Jan 31 14:24:43 EST 2011


On Jan 31, 2011, at 1:47 AM, Tilmann Singer wrote:

> Hi,
> 
> I'm seeing the following output of ps after starting unicorn, which as
> I understand it means that there are multiple master processes
> running, each with its own pid. Is that normal behaviour or is there
> something wrong with my setup?
> 
<snip>

> # config/unicorn.rb
> worker_processes 3
> pid "tmp/pids/unicorn.pid"
> stderr_path "log/unicorn.stderr.log"
> stdout_path "log/unicorn.stdout.log"

Unicorn doesn't kill the old master on it's own, you need an after_fork() like so (from the default/suggested unicorn conf) 

http://unicorn.bogomips.org/examples/unicorn.conf.rb 


More information about the mongrel-unicorn mailing list