add skynet.harbor.linkmaster

This commit is contained in:
Cloud Wu
2014-09-25 18:16:24 +08:00
parent 885c5b56bb
commit f32f613ac0
3 changed files with 20 additions and 1 deletions

View File

@@ -1,9 +1,16 @@
local skynet = require "skynet"
local harbor = require "skynet.harbor"
local function monitor_master()
harbor.linkmaster()
print("master is down")
skynet.exit()
end
skynet.start(function()
print("Log server start")
skynet.monitor "simplemonitor"
local log = skynet.newservice("globallog")
skynet.exit()
skynet.fork(monitor_master)
end)