mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
rewrite watchdog/agent, use new gate
This commit is contained in:
@@ -9,9 +9,12 @@ skynet.start(function()
|
||||
local lualog = skynet.newservice("lualog")
|
||||
local console = skynet.newservice("console")
|
||||
-- skynet.newservice("debug_console",8000)
|
||||
local watchdog = skynet.newservice("watchdog","8888", max_client, 0)
|
||||
local db = skynet.newservice("simpledb")
|
||||
-- skynet.launch("snlua","testgroup")
|
||||
skynet.newservice("simpledb")
|
||||
local watchdog = skynet.newservice("watchdog")
|
||||
skynet.call(watchdog, "lua", "start", {
|
||||
port = 8888,
|
||||
maxclient = max_client,
|
||||
})
|
||||
|
||||
skynet.exit()
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user