From: Michael Tremer Date: Wed, 7 Aug 2024 13:31:11 +0000 (+0200) Subject: services.cgi: Remove showing the PIDs for add-on services X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f0f0a9d2a62ccdad8230fa0405f31b08b4123a8;p=people%2Fmfischer%2Fipfire-2.x.git 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 --- diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi index 91cdd3958..4b929c716 100644 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -141,7 +141,6 @@ $querry[1] = 'hour' unless defined $querry[1]; Boot $Lang::tr{'action'} $Lang::tr{'status'} - PID $Lang::tr{'memory'} END @@ -210,10 +209,8 @@ sub isrunningaddon (@) { my ($pak, $service) = @_; my $status = "$Lang::tr{'stopped'}"; - 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 .="$pid[0]"; # Fetch the memory consumption my $memory = &General::get_memory_consumption(@pid);