From 82ab7195076513438e04bbafb8530c5d0feb8b6a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 25 Oct 2025 02:07:07 -0600 Subject: [PATCH] Update system_services.php --- app/system/resources/dashboard/system_services.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/system/resources/dashboard/system_services.php b/app/system/resources/dashboard/system_services.php index bb6204677b..04ccee685d 100644 --- a/app/system/resources/dashboard/system_services.php +++ b/app/system/resources/dashboard/system_services.php @@ -57,9 +57,9 @@ if (!function_exists('is_running')) { function is_running(string $name) { $name = escapeshellarg($name); - $pid = trim(shell_exec("ps -aux | grep $name | grep -v grep | awk '{print \$2}' | head -n 1")); + $pid = shell_exec("ps -aux | grep $name | grep -v grep | awk '{print \$2}' | head -n 1"); if ($pid && is_numeric($pid)) { - $etime = trim(shell_exec("ps -p $pid -o etime= | tr -d '\n'")); + $etime = shell_exec("ps -p $pid -o etime= | tr -d '\n'"); return ['running' => true, 'pid' => $pid, 'etime' => $etime]; } return ['running' => false, 'pid' => null, 'etime' => null];