public function restart($daemon = null): void
    {
        if ($this->getPidFromFile(true)) {
            $this->stop(false);
        }

        $this->start($daemon);
    }
public function restart($daemon = null): void
    {
        if ($this->getPidFromFile(true)) {
            $this->stop(false);
        }

        $this->start($daemon);
    }
public function restart ( $ daemon = null ) : void { if ( $ this -> getPidFromFile ( true ) ) { $ this -> stop ( false ) ; } $ this -> start ( $ daemon ) ; }
Do restart server
@param null|bool $daemon
@throws \Throwable
Do restart server