parameters: (self)
docstring: Starts a database engine.
          :return: None
docstring_summary: Starts a database engine.
          :return: None
docstring_tokens: Starts a database engine . : return : None
function: def start(self):
          """
          Starts a database engine.
          :return: None
          """
          if self.pid is not None:
              logging.debug("database engine already started")
              return
  
          log_dir = os.path.dirname(self.log_file)
          if not os.path.exists(log_dir):
              os.makedirs(log_dir)
  
          # -m <management ip:port> -n <nodeid> -l <log path/file>
          self.pid = os.spawnl(os.P_NOWAIT, self.infinisql, self.infinisql,
                                '-m', '%s:%s' % (self.management_ip, self.management_port),
                                '-n', str(self.node_id),
                                '-l', self.log_file)
  
          logging.info("Started database engine pid=%s", self.pid)
          self._connect()
function_tokens: def start ( self ) : if self . pid is not None : logging . debug ( "database engine already started" ) return log_dir = os . path . dirname ( self . log_file ) if not os . path . exists ( log_dir ) : os . makedirs ( log_dir ) # -m <management ip:port> -n <nodeid> -l <log path/file> self . pid = os . spawnl ( os . P_NOWAIT , self . infinisql , self . infinisql , '-m' , '%s:%s' % ( self . management_ip , self . management_port ) , '-n' , str ( self . node_id ) , '-l' , self . log_file ) logging . info ( "Started database engine pid=%s" , self . pid ) self . _connect ( )