This commit is contained in:
2026-07-08 10:45:21 +08:00
parent 56ebbd2a2e
commit 77e9333651
4 changed files with 194 additions and 19 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ class AsyncServer extends Component implements ServerInterface
$settings[Constant::OPTION_DAEMONIZE] = (bool)$daemon;
$settings[Constant::OPTION_ENABLE_REUSE_PORT] = true;
$settings[Constant::OPTION_PID_FILE] = storage('.swoole.pid');
if (!isset($settings[Constant::OPTION_PID_FILE])) {
if (!isset($settings[Constant::OPTION_LOG_FILE])) {
$settings[Constant::OPTION_LOG_FILE] = storage('system.log');
}
return $settings;