2 title
: L
.tr('Processes'),
3 description
: L
.tr('This list gives an overview over currently running system processes and their status.'),
5 var allow_signals
= this.options
.acls
.status
;
6 return L
.system
.getProcessList().then(function(list
) {
7 var procTable
= new L
.ui
.table({
12 caption
: L
.tr('Owner'),
15 caption
: L
.tr('Command'),
18 caption
: L
.tr('CPU usage (%)'),
22 caption
: L
.tr('Memory usage (%)'),
27 format: function(v
, n
) {
28 return $('<button />')
29 .attr('disabled', !allow_signals
)
30 .addClass('cbi-button')
31 .addClass('cbi-button-reload')
32 .text(L
.tr('Hang Up'))
33 .click(function() { L
.system
.sendSignal(v
, 1).then(status
) });
37 format: function(v
, n
) {
38 return $('<button />')
39 .attr('disabled', !allow_signals
)
40 .addClass('cbi-button')
41 .addClass('cbi-button-remove')
42 .text(L
.tr('Terminate'))
43 .click(function() { L
.system
.sendSignal(v
, 15).then(status
) });
47 format: function(v
, n
) {
48 return $('<button />')
49 .attr('disabled', !allow_signals
)
50 .addClass('cbi-button')
51 .addClass('cbi-button-reset')
53 .click(function() { L
.system
.sendSignal(v
, 9).then(status
); });
59 procTable
.insertInto('#process_table');