diff --git a/Controller.lua b/Controller.lua
index 66a616f..4447d82 100644
--- a/Controller.lua
+++ b/Controller.lua
@@ -15,17 +15,14 @@ function node_start(child)
local nodename = child.attr.nodename
local args = child.attr.args --may be nil
- local msg = "https://"..host.."/_django_App_start?nodetype=".."\""..nodetype.."\"".."?nodename=".."\""..nodename.."\""
+ local msg = "https://"..host.."/persistmods/start?nodetype=".."\""..nodetype.."\"".."&nodename=".."\""..nodename.."\""
if (args ~= nil) then
- msg = msg .."?args=\""..args.."\""
+ msg = msg .."&args=\""..args.."\""
end
local response, code, headers = easyhttp.request(msg)
-#print(response)
-#print(code)
-#print(headers)
print( msg)
--send & handle resp
@@ -37,17 +34,20 @@ function node_execute(child)
local nodename=child.attr.nodename
local host=live_nodes[nodename]
- print ("https://"..host.."/_django_App_execute?nodename=".."\""..nodename.."\"")
- local response, code, headers = easyhttp.request(msg)
+ print ("https://"..host.."/persistmods/execute?nodename=".."\""..nodename.."\"")
+ local response, code, headers = easyhttp.request("https://"..host.."/persistmods/execute?nodename=".."\""..nodename.."\"")
+
end
function node_get_logs(child)
for a, b in pairs(live_nodes) do
- print ("https://"..b.."/_django_App_get_logs?nodename=".."\""..a.."\"")
+ msg="https://"..b.."//persistmods/get_logs?nodename=".."\""..a.."\""
+ local response, code, headers = easyhttp.request(msg)
+ print)msg)
end
local file = io.open("logfil.txt", "w") -- "w" means write (overwrite)
- file:write("Test OK")
+ file:write(response)
file:close()
end
@@ -61,8 +61,8 @@ end
function node_close(child)
local nodename=child.attr.nodename
local host=live_nodes[nodename]
- print ("https://"..host.."/_django_App_close?nodename=".."\""..nodename.."\"")
- local response, code, headers = easyhttp.request(msg)
+ print ("https://"..host.."/persistsmods/stop?nodename=".."\""..nodename.."\"")
+ local response, code, headers = easyhttp.request("https://"..host.."/persistsmods/stop?nodename=".."\""..nodename.."\"")
end
diff --git a/commands.xml b/commands.xml
index 8e5b9e4..f63401b 100644
--- a/commands.xml
+++ b/commands.xml
@@ -1,5 +1,5 @@
-
-
+
+