Multiple master processes

Eric Wong normalperson at yhbt.net
Tue Feb 1 16:22:40 EST 2011


Tilmann Singer <tils at tils.net> wrote:
> > > $ ps xf|grep 4002
> > >  8022 ?        S      0:00 unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
> > >  8024 ?        S      0:00  \_ unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
> > > 26743 ?        S      0:00  |   \_ unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
> [...]
> > > $ cat tmp/pids/unicorn.pid
> > > 8022
> 
> Could it be that the content of the pidfile is wrong in this case? I
> found that I always have to signal the pid of the last of the master
> process list entries (26743 in this example) to see them have an
> effect. Not a big deal, just wondering.

Probably, I don't think there's a reliable way to get the pid
dedicated to signal handling with LinuxThreads...

> > Wow, I didn't realize people ran the latest Rubies on 2.4.x!
> 
> Time to upgrade for me I assume ...

Definitely, especially since you're using Ruby 1.9.2 :)

-- 
Eric Wong


More information about the mongrel-unicorn mailing list