This commit is contained in:
2021-11-30 18:31:41 +08:00
parent ea425bb82d
commit 86e4a92ab0
+1 -1
View File
@@ -98,7 +98,7 @@ class HotReload extends Command
public function healthCheck()
{
$pid = (int)file_get_contents(storage('.swoole.pid'));
$this->logger->debug('timer ticker.' . Process::kill($pid, 0));
$this->logger->debug('timer ticker.' . $pid . '.' . Process::kill($pid, 0));
if (!empty($pid) && !Process::kill($pid, 0)) {
if ($this->process && Process::kill($this->process->pid, 0)) {
echo 'service is shutdown you need reload.';