예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
파일: api.py 프로젝트: n-nishida/rack
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()
예제 #4
0
 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)