mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Don't persist before_fork hook in state file
This commit is contained in:
parent
81c2ccb6d4
commit
c365f2d1fc
3 changed files with 36 additions and 6 deletions
14
test/config/state_file_testing_config.rb
Normal file
14
test/config/state_file_testing_config.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
pidfile "t3-pid"
|
||||
workers 3
|
||||
on_worker_boot do |index|
|
||||
File.open("t3-worker-#{index}-pid", "w") { |f| f.puts Process.pid }
|
||||
end
|
||||
|
||||
before_fork { 1 }
|
||||
on_worker_shutdown { 1 }
|
||||
on_worker_boot { 1 }
|
||||
on_worker_fork { 1 }
|
||||
on_restart { 1 }
|
||||
after_worker_boot { 1 }
|
||||
lowlevel_error_handler { 1 }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue