Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix layout

  • Loading branch information...
commit a1bd7093447f1448cbf50b931e54ea5a956df3cb 1 parent 58e9f68
Chris Harper authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 README.md
View
6 README.md
@@ -73,28 +73,22 @@ config/unicorn.rb
worker_processes 4
timeout 15
preload_app true
-
listen "/var/www/APP_NAME/current/tmp/unicorn.sock", :backlog => 64
pid "/var/www/APP_NAME/current/tmp/pids/unicorn.pid"
stderr_path "/var/www/APP_NAME/current/log/unicorn.stderr.log"
stdout_path "/var/www/APP_NAME/current/log/unicorn.stdout.log"
-
-
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
-
defined?(ActiveRecord::Base) and
ActiveRecord::Base.connection.disconnect!
end
-
after_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
end
-
defined?(ActiveRecord::Base) and
ActiveRecord::Base.establish_connection
end
Please sign in to comment.
Something went wrong with that request. Please try again.