def dispatch(self, daemonize=False): """Start the Fabric server. """ # Configure logging. _configure_logging(self.config, daemonize) # Configure connections. _configure_connections(self.config) #Configure TTL _setup_ttl(self.config) try: credentials.check_initial_setup(self.config, _persistence.MySQLPersister(), check_only=True) except _errors.CredentialError as error: _LOGGER.debug(str(error)) return # Daemonize ourselves. if daemonize: _utils.daemonize() # Start Fabric server. _start(self.options, self.config) _services.ServiceManager().wait()
def dispatch(self): """Setup Fabric Storage System. """ # Configure logging. _configure_logging(self.config, False) # Configure connections. _configure_connections(self.config) # Create database and objects. _persistence.setup(config=self.config) credentials.check_initial_setup(self.config, _persistence.MySQLPersister())
def dispatch(self, daemonize=False): """Start the Fabric server. """ # Configure logging. _configure_logging(self.config, daemonize) # Configure connections. _configure_connections(self.config) credentials.check_initial_setup(self.config, _persistence.MySQLPersister(), check_only=True) # Daemonize ourselves. if daemonize: _utils.daemonize() # Start Fabric server. _start(self.options, self.config) _services.ServiceManager().wait()
def dispatch(self, daemonize=False): """Start the Fabric server. """ # Configure logging. _configure_logging(self.config, daemonize) # Configure connections. _configure_connections(self.config) credentials.check_initial_setup( self.config, _persistence.MySQLPersister(), check_only=True ) # Daemonize ourselves. if daemonize: _utils.daemonize() # Start Fabric server. _start(self.options, self.config) _services.ServiceManager().wait()
def dispatch(self, daemonize=False): """Start the Fabric server. """ # Configure logging. _configure_logging(self.config, daemonize) # Configure connections. _configure_connections(self.config) try: credentials.check_initial_setup(self.config, _persistence.MySQLPersister(), check_only=True) except _errors.CredentialError as error: _LOGGER.debug(str(error)) return # Daemonize ourselves. if daemonize: _utils.daemonize() # Start Fabric server. _start(self.options, self.config) _services.ServiceManager().wait()