search for: starting_worker_process

Displaying 2 results from an estimated 2 matches for "starting_worker_process".

2012 Jul 19
5
Detecting unicorn / defining after_fork after master startup
...y for adding an after_fork hook after Unicorn has already started up? I''m aware of the ability to do this via the config file but I don''t want my users to have to add something to their unicorn config file. Is there an equivalent to passenger''s PhusionPassenger.on_event(:starting_worker_process) method? Thanks! -Matt
2010 Nov 09
2
AMQP and Unicorn (mq gem)
...on for it to monkey patch unicorn too. The code looks like: /vendor/plugins/qusion/lib/amqp.rb module AMQP def self.start_web_dispatcher(amqp_settings={}) @settings = settings.merge(amqp_settings) case Qusion::ServerSpy.server_type when :passenger PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked EM.kill_reactor Thread.current[:mq], @conn = nil, nil end Thread.new { start } die_gracefully_on_signal end when :standard Thread.new { start } die_gracefully_on_signal when :evented die_gra...