Method: Chef::Application#initialize
- Defined in:
- lib/chef/application.rb
#initialize ⇒ Application
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/chef/application.rb', line 26 def initialize super trap("TERM") do Chef::Application.fatal!("SIGTERM received, stopping", 1) end trap("INT") do Chef::Application.fatal!("SIGINT received, stopping", 2) end trap("HUP") do Chef::Log.info("SIGHUP received, reconfiguring") reconfigure end at_exit do # tear down the logger end end |