service_mgr support list, add a debug command to debug_console

This commit is contained in:
Cloud Wu
2014-04-19 20:45:40 +08:00
parent ddd0b13013
commit 8840c0fe3e
5 changed files with 98 additions and 20 deletions

View File

@@ -110,6 +110,7 @@ function COMMAND.help()
gc = "gc : force every lua service do garbage collect",
start = "lanuch a new lua service",
clearcache = "clear lua code cache",
service = "List unique service",
}
end
@@ -126,4 +127,6 @@ function COMMAND.start(...)
end
end
function COMMAND.service()
return skynet.call("SERVICE", "lua", "LIST")
end