summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/luci-base/root/usr/libexec/rpcd/luci11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci
index 10c1691b96..5bd17c75d2 100755
--- a/modules/luci-base/root/usr/libexec/rpcd/luci
+++ b/modules/luci-base/root/usr/libexec/rpcd/luci
@@ -582,6 +582,17 @@ local methods = {
local sys = require "luci.sys"
return { result = sys.net.conntrack() }
end
+ },
+
+ getProcessList = {
+ call = function()
+ local sys = require "luci.sys"
+ local res = {}
+ for _, v in pairs(sys.process.list()) do
+ res[#res + 1] = v
+ end
+ return { result = res }
+ end
}
}