# File lib/chef_zero/server.rb, line 273 def stop(wait = 5) if @running @server.shutdown @thread.join(wait) end rescue Timeout::Error if @thread ChefZero::Log.error("Chef Zero did not stop within #{wait} seconds! Killing...") @thread.kill end ensure @server = nil @thread = nil end