This commit is contained in:
2021-11-30 19:04:29 +08:00
parent d161477957
commit b4ac5c4758
+2 -2
View File
@@ -99,10 +99,10 @@ class HotReload extends Command
{
$pid = (int)file_get_contents(storage('.swoole.pid'));
if (empty($pid)) {
$this->logger->debug('service is shutdown you need reload.');
$this->logger->warning('service is shutdown you need reload.');
$this->trigger_reload();
} else if (!Process::kill($pid, 0)) {
$this->logger->debug('service is shutdown you need reload.');
$this->logger->warning('service is shutdown you need reload.');
$this->trigger_reload();
}
}