Sha256: ee5ecc8255a168153f600f89d92d58b03873090816fcfc240f631cbf103f7d72
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
require 'datadog/demo_env' # config/unicorn.rb worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) timeout 15 preload_app true Datadog::DemoEnv.print_env('Unicorn master environment') 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 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 Datadog::DemoEnv.print_env('Unicorn worker environment') end
Version data entries
7 entries across 7 versions & 1 rubygems