third_party/blink/tools/blinkpy/web_tests/servers/server_base.py
def start(self):
        """Starts the server. It is an error to start an already started server.

        This method also stops any stale servers started by a previous instance.
        """
        assert not self._pid, '%s server is already running' % self._name

        # Stop any stale servers left over from previous instances.
        if self._filesystem.exists(self._pid_file):
            try:
                self._pid = int(
                    self._filesystem.read_text_file(self._pid_file))
                _log.debug('stale %s pid file, pid %d', self._name, self._pid)
                self._stop_running_server()
            except (ValueError, UnicodeDecodeError):
                # These could be raised if the pid file is corrupt.
                self._remove_pid_file()
            self._pid = None

        self._remove_stale_logs()
        self._prepare_config()
        self._check_that_all_ports_are_available()

        self._pid = self._spawn_process()

        if self._wait_for_action(self._is_server_running_on_all_ports):
            _log.debug('%s successfully started (pid = %d)', self._name,
                       self._pid)
        else:
            self._log_errors_from_subprocess()
            self._stop_running_server()
            raise ServerError('Failed to start %s server' % self._name)
Starts the server. It is an error to start an already started server.

        This method also stops any stale servers started by a previous instance.
        
Starts the server. It is an error to start an already started server.
This method also stops any stale servers started by a previous instance.
Starts the server . It is an error to start an already started server . This method also stops any stale servers started by a previous instance .
def start(self):
        assert not self._pid, '%s server is already running' % self._name
        if self._filesystem.exists(self._pid_file):
            try:
                self._pid = int(
                    self._filesystem.read_text_file(self._pid_file))
                _log.debug('stale %s pid file, pid %d', self._name, self._pid)
                self._stop_running_server()
            except (ValueError, UnicodeDecodeError):
                self._remove_pid_file()
            self._pid = None
        self._remove_stale_logs()
        self._prepare_config()
        self._check_that_all_ports_are_available()
        self._pid = self._spawn_process()
        if self._wait_for_action(self._is_server_running_on_all_ports):
            _log.debug('%s successfully started (pid = %d)', self._name,
                       self._pid)
        else:
            self._log_errors_from_subprocess()
            self._stop_running_server()
            raise ServerError('Failed to start %s server' % self._name)
def start ( self ) : assert not self . _pid , '%s server is already running' % self . _name if self . _filesystem . exists ( self . _pid_file ) : try : self . _pid = int ( self . _filesystem . read_text_file ( self . _pid_file ) ) _log . debug ( 'stale %s pid file, pid %d' , self . _name , self . _pid ) self . _stop_running_server ( ) except ( ValueError , UnicodeDecodeError ) : self . _remove_pid_file ( ) self . _pid = None self . _remove_stale_logs ( ) self . _prepare_config ( ) self . _check_that_all_ports_are_available ( ) self . _pid = self . _spawn_process ( ) if self . _wait_for_action ( self . _is_server_running_on_all_ports ) : _log . debug ( '%s successfully started (pid = %d)' , self . _name , self . _pid ) else : self . _log_errors_from_subprocess ( ) self . _stop_running_server ( ) raise ServerError ( 'Failed to start %s server' % self . _name )
Starts the server.
Starts the server .
"""Starts the server. It is an error to start an already started server.

        This method also stops any stale servers started by a previous instance.
        """ # Stop any stale servers left over from previous instances. # These could be raised if the pid file is corrupt.
self