mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
services.cgi: Remove showing the PIDs for add-on services
This was only showing one PID and I don't see any reason why anyone would need this. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -141,7 +141,6 @@ $querry[1] = 'hour' unless defined $querry[1];
|
||||
<th align='center'><b>Boot</b></th>
|
||||
<th align='center' colspan=2><b>$Lang::tr{'action'}</b></th>
|
||||
<th align='center'><b>$Lang::tr{'status'}</b></th>
|
||||
<th align='center'><b>PID</b></th>
|
||||
<th align='center'><b>$Lang::tr{'memory'}</b></th>
|
||||
</tr>
|
||||
END
|
||||
@@ -210,10 +209,8 @@ sub isrunningaddon (@) {
|
||||
my ($pak, $service) = @_;
|
||||
|
||||
my $status = "<td class='status is-stopped'>$Lang::tr{'stopped'}</td><td colspan='2'></td>";
|
||||
my $pid = '';
|
||||
my $testcmd = '';
|
||||
my $exename;
|
||||
my @memory;
|
||||
|
||||
my @testcmd = &General::system_output("/usr/local/bin/addonctrl", "$pak", "status", "$service");
|
||||
my $testcmd = @testcmd[0];
|
||||
@@ -230,7 +227,6 @@ sub isrunningaddon (@) {
|
||||
$testcmd =~ s///gi;
|
||||
|
||||
my @pid = split(/\s/,$testcmd);
|
||||
$status .="<td align='center'>$pid[0]</td>";
|
||||
|
||||
# Fetch the memory consumption
|
||||
my $memory = &General::get_memory_consumption(@pid);
|
||||
|
||||
Reference in New Issue
Block a user