protected function restart()
    {
        $pid = $this->getCurrentPid();

        if ($this->isRunning($pid)) {
            $this->stop();
        }

        $this->start();
    }
protected function restart()
    {
        $pid = $this->getCurrentPid();

        if ($this->isRunning($pid)) {
            $this->stop();
        }

        $this->start();
    }
protected function restart ( ) { $ pid = $ this -> getCurrentPid ( ) ; if ( $ this -> isRunning ( $ pid ) ) { $ this -> stop ( ) ; } $ this -> start ( ) ; }
Restart swoole http server.
Restart swoole http server .