提交 1410d46b 编写于 作者: A Alex Johnson

Move interrupt information to print_boot_information method

上级 919fafa5
......@@ -62,7 +62,7 @@ def set_environment
def start
print_boot_information
trap_interrupt_and_print_interrupt_information
trap(:INT) { exit }
create_tmp_directories
log_to_stdout if options[:log_stdout]
......@@ -116,10 +116,7 @@ def print_boot_information
if options[:Host].to_s.match(/0\.0\.0\.0/)
puts "=> Notice: server is listening on all interfaces (#{ options[:Host] }). Consider using 127.0.0.1 (--binding option)"
end
end
def trap_interrupt_and_print_interrupt_information
trap(:INT) { exit }
puts "=> Ctrl-C to shutdown server" unless options[:daemonize]
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册