src/Command/RpcCommand.php
public function restart()
    {
        $rpcServer = $this->getRpcServer();

        // 是否已启动
        if ($rpcServer->isRunning()) {
            $this->stop();
        }

        // 重启默认是守护进程
        $rpcServer->setDaemonize();
        $this->start();
    }
public function restart()
    {
        $rpcServer = $this->getRpcServer();

        // 是否已启动
        if ($rpcServer->isRunning()) {
            $this->stop();
        }

        // 重启默认是守护进程
        $rpcServer->setDaemonize();
        $this->start();
    }
public function restart ( ) { $ rpcServer = $ this -> getRpcServer ( ) ; // 是否已启动 if ( $ rpcServer -> isRunning ( ) ) { $ this -> stop ( ) ; } // 重启默认是守护进程 $ rpcServer -> setDaemonize ( ) ; $ this -> start ( ) ; }
restart rpc server

@Usage {fullCommand}
@Options
-d, --daemon    Run server on the background
@Example
{fullCommand}
{fullCommand} -d
restart rpc server