This commit is contained in:
2021-11-18 18:06:45 +08:00
parent 13a8ca73bd
commit 065555a80e
+3 -1
View File
@@ -169,7 +169,9 @@ class ServerManager
}
$system = sprintf('[%s].process', Config::get('id', 'system-service'));
$process = new Process(function (Process $process) use ($customProcess, $system) {
$process->name($system . '(' . $customProcess->getName() . ')');
if (Kiri::getPlatform()->isLinux()) {
$process->name($system . '(' . $customProcess->getName() . ')');
}
$customProcess->process($process);
}, $customProcess->getRedirectStdinAndStdout(), $customProcess->getPipeType(), $customProcess->isEnableCoroutine());
$this->logger->debug($system . ' ' . $customProcess->getName() . ' start.');