templates/unicorn.rb in suspenders-1.21.0 vs templates/unicorn.rb in suspenders-1.22.0
- old
+ new
@@ -2,23 +2,23 @@
worker_processes (ENV["UNICORN_WORKERS"] || 3).to_i
timeout (ENV["UNICORN_TIMEOUT"] || 15).to_i
preload_app true
-before_fork do |server, worker|
+before_fork do |_server, _worker|
Signal.trap "TERM" do
- puts "Unicorn master intercepting TERM and sending myself QUIT instead"
+ puts "Unicorn master intercepting TERM, sending myself QUIT instead"
Process.kill "QUIT", Process.pid
end
if defined? ActiveRecord::Base
ActiveRecord::Base.connection.disconnect!
end
end
-after_fork do |server, worker|
+after_fork do |_server, _worker|
Signal.trap "TERM" do
- puts "Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT"
+ puts "Unicorn worker intercepting TERM, waiting for master to send QUIT"
end
if defined? ActiveRecord::Base
config = ActiveRecord::Base.configurations[Rails.env] ||
Rails.application.config.database_configuration[Rails.env]