Files
nginx-unit/test/ruby/hooks/multiple.rb
2021-07-02 13:00:57 +00:00

10 lines
221 B
Ruby

require 'securerandom'
on_worker_boot do
File.write("./cookie_worker_boot.#{SecureRandom.hex}", "worker booted")
end
on_thread_boot do
File.write("./cookie_thread_boot.#{SecureRandom.hex}", "thread booted")
end