mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
reload snlua service
This commit is contained in:
@@ -17,6 +17,18 @@ function command.LIST()
|
||||
skynet.ret(skynet.pack(list))
|
||||
end
|
||||
|
||||
function command.RELOAD(handle)
|
||||
handle = handle_to_address(handle)
|
||||
local cmd = string.match(services[handle], "snlua (.+)")
|
||||
print(services[handle],cmd)
|
||||
if cmd then
|
||||
skynet.send(handle,"debug","RELOAD",cmd)
|
||||
skynet.ret(skynet.pack({cmd}))
|
||||
else
|
||||
skynet.ret(skynet.pack({"Support only snlua"}))
|
||||
end
|
||||
end
|
||||
|
||||
function command.STAT()
|
||||
local list = {}
|
||||
for k,v in pairs(services) do
|
||||
|
||||
Reference in New Issue
Block a user