don't launch console service when in daemon mode

This commit is contained in:
Cloud Wu
2016-06-28 18:31:12 +08:00
parent b50e663a3a
commit 33321e89a1
2 changed files with 6 additions and 2 deletions

View File

@@ -6,7 +6,9 @@ local max_client = 64
skynet.start(function()
skynet.error("Server start")
skynet.uniqueservice("protoloader")
local console = skynet.newservice("console")
if not skynet.getenv "daemon" then
local console = skynet.newservice("console")
end
skynet.newservice("debug_console",8000)
skynet.newservice("simpledb")
local watchdog = skynet.newservice("watchdog")