From ba43c969cf3f5b98457ff488a9c6bbe91889c70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 5 Nov 2021 18:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ServerManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerManager.php b/ServerManager.php index c923b14..be433e1 100644 --- a/ServerManager.php +++ b/ServerManager.php @@ -163,9 +163,9 @@ class ServerManager $customProcess = Kiri::getDi()->get($customProcess); } $process = new Process(function (Process $soloProcess) use ($customProcess) { - $system = sprintf('[%s].process[%d]', Config::get('id', 'system-service'), $soloProcess->pid); + $system = sprintf('[%s].process', Config::get('id', 'system-service')); if (Kiri::getPlatform()->isLinux()) { - $soloProcess->name($system . '.' . $customProcess->getName() . ' start.'); + $soloProcess->name($system . '(' . $customProcess->getName() . ')'); } echo "\033[36m[" . date('Y-m-d H:i:s') . "]\033[0m " . $system . $customProcess->getName() . ' start.' . PHP_EOL; $customProcess->signListen($soloProcess);