]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
services.cgi: Remove showing the PIDs for add-on services
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 13:31:11 +0000 (15:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 13:31:11 +0000 (15:31 +0200)
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>
html/cgi-bin/services.cgi

index 91cdd3958d4d83e64201360504387237c0a318c1..4b929c716485fb56d4cd2c48673f9a74475e4459 100644 (file)
@@ -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/\e//gi;
 
                my @pid = split(/\s/,$testcmd);
-               $status .="<td align='center'>$pid[0]</td>";
 
                # Fetch the memory consumption
                my $memory = &General::get_memory_consumption(@pid);