1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
3 -- Licensed to the public under the Apache License 2.0.
5 f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status."))
9 t = f:section(Table, luci.sys.process.list())
10 t:option(DummyValue, "PID", translate("PID"))
11 t:option(DummyValue, "USER", translate("Owner"))
12 t:option(DummyValue, "COMMAND", translate("Command"))
13 t:option(DummyValue, "%CPU", translate("CPU usage (%)"))
14 t:option(DummyValue, "%MEM", translate("Memory usage (%)"))
16 hup = t:option(Button, "_hup", translate("Hang Up"))
17 hup.inputstyle = "reload"
18 function hup.write(self, section)
19 null, self.tag_error[section] = luci.sys.process.signal(section, 1)
22 term = t:option(Button, "_term", translate("Terminate"))
23 term.inputstyle = "remove"
24 function term.write(self, section)
25 null, self.tag_error[section] = luci.sys.process.signal(section, 15)
28 kill = t:option(Button, "_kill", translate("Kill"))
29 kill.inputstyle = "reset"
30 function kill.write(self, section)
31 null, self.tag_error[section] = luci.sys.process.signal(section, 9)