mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
don't launch console service when in daemon mode
This commit is contained in:
@@ -9,7 +9,9 @@ start = "main" -- main script
|
|||||||
bootstrap = "snlua bootstrap" -- The service for bootstrap
|
bootstrap = "snlua bootstrap" -- The service for bootstrap
|
||||||
standalone = "0.0.0.0:2013"
|
standalone = "0.0.0.0:2013"
|
||||||
luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua"
|
luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua"
|
||||||
lualoader = "lualib/loader.lua"
|
lualoader = root .. "lualib/loader.lua"
|
||||||
|
lua_path = root.."lualib/?.lua;"..root.."lualib/?/init.lua"
|
||||||
|
lua_cpath = root .. "luaclib/?.so"
|
||||||
-- preload = "./examples/preload.lua" -- run preload.lua before every lua service run
|
-- preload = "./examples/preload.lua" -- run preload.lua before every lua service run
|
||||||
snax = root.."examples/?.lua;"..root.."test/?.lua"
|
snax = root.."examples/?.lua;"..root.."test/?.lua"
|
||||||
-- snax_interface_g = "snax_g"
|
-- snax_interface_g = "snax_g"
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ local max_client = 64
|
|||||||
skynet.start(function()
|
skynet.start(function()
|
||||||
skynet.error("Server start")
|
skynet.error("Server start")
|
||||||
skynet.uniqueservice("protoloader")
|
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("debug_console",8000)
|
||||||
skynet.newservice("simpledb")
|
skynet.newservice("simpledb")
|
||||||
local watchdog = skynet.newservice("watchdog")
|
local watchdog = skynet.newservice("watchdog")
|
||||||
|
|||||||
Reference in New Issue
Block a user