This commit is contained in:
2022-06-23 01:20:23 +08:00
parent 47f1a6c4f5
commit e35fca4638
+1 -1
View File
@@ -79,7 +79,7 @@ class ProcessManager
$system = sprintf('[%s].Custom Process', Config::get('id', 'system-service'));
Kiri::getLogger()->alert($system . ' ' . $customProcess->getName() . ' start.');
if (Kiri::getPlatform()->isLinux()) {
$process->name($system . '(' . $customProcess->getName() . ')');
$process->name($system .'['.$process->pid.'].'. $customProcess->getName());
}
$customProcess->onSigterm()->process($process);
};