def main(): config.parse_args(sys.argv) logging.setup("rack") utils.monkey_patch() server = service.Service.create(binary="rack-resourceoperator", topic=CONF.resourceoperator_topic) service.serve(server) service.wait()
def main(): config.parse_args(sys.argv) logging.setup("rack") utils.monkey_patch() launcher = service.process_launcher() server = service.WSGIService('rackapi') launcher.launch_service(server, workers=server.workers or 1) launcher.wait()
def setUp(self): super(ConfFixture, self).setUp() self.conf.set_default('api_paste_config', paths.state_path_def('etc/api-paste.ini')) self.conf.set_default('host', 'fake-mini') self.conf.set_default('connection', "sqlite://", group='database') self.conf.set_default('sqlite_synchronous', False, group='database') self.conf.set_default('use_ipv6', True) config.parse_args([], default_config_files=[]) self.addCleanup(utils.cleanup_dns_managers)