From 1ed09df805c4f068bab668b464fd29e229a2ed60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 14 Jun 2019 20:55:05 +0800 Subject: =?UTF-8?q?#45=20=E9=80=9A=E7=9F=A5exit=E6=97=B6=E4=B8=BB=E5=8A=A8?= =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/exit.lua | 3 ++- server/src/method/shutdown.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/method/exit.lua b/server/src/method/exit.lua index 716a86e7..fa550243 100644 --- a/server/src/method/exit.lua +++ b/server/src/method/exit.lua @@ -1,3 +1,4 @@ return function () - return true + log.info('Server exited.') + os.exit(true) end diff --git a/server/src/method/shutdown.lua b/server/src/method/shutdown.lua index 716a86e7..bb81306e 100644 --- a/server/src/method/shutdown.lua +++ b/server/src/method/shutdown.lua @@ -1,3 +1,4 @@ return function () + log.info('Server shutdown.') return true end -- cgit v1.2.3