make ubusd load the acl on start and HUP
[project/ubus.git] / lua / test.lua
index 07e62c6ac5341d9cc0aecbf110284d57c3d9b2ce..d24ac6e43b5124fd01003ba41a25dd025c2e2a9a 100755 (executable)
@@ -39,4 +39,16 @@ local my_method = {
 }
 
 conn:add(my_method)
+
+local my_event = {
+       test = function(msg)
+               print("Call to test event")
+               for k, v in pairs(msg) do
+                       print("key=" .. k .. " value=" .. tostring(v))
+               end
+       end,
+}
+
+conn:listen(my_event)
+
 uloop.run()