Skip to content

Commit

Permalink
Merge pull request #458 from ruby-china/fix/unicorn-message-bus-patch
Browse files Browse the repository at this point in the history
按照 message_bus 官方的说明,修改 Unicorn 的配置;
  • Loading branch information
huacnlee committed Oct 11, 2015
2 parents f9996b7 + 907a1dd commit cb682da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/unicorn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
end

after_fork do |_server, _worker|
MessageBus.after_fork

Signal.trap 'TERM' do
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
end
Expand Down

0 comments on commit cb682da

Please sign in to comment.