src/Leevel/Protocol/Server.php
public function onShutdown(SwooleServer $server): void
    {
        if (is_file($this->option['pid_path'])) {
            unlink($this->option['pid_path']);
        }

        $this->log('Server shutdown');
    }
public function onShutdown(SwooleServer $server): void
    {
        if (is_file($this->option['pid_path'])) {
            unlink($this->option['pid_path']);
        }

        $this->log('Server shutdown');
    }
Server 正常结束时发生
服务器关闭时执行一次

@param \Swoole\Server $server

@see https://wiki.swoole.com/wiki/page/p-event/onShutdown.html