25 lines
628 B
Python
25 lines
628 B
Python
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
import eventlet
|
|
from bufunfa.openstack.common import cfg
|
|
from bufunfa.openstack.common import log
|
|
from bufunfa.openstack.common import service
|
|
from bufunfa.central.service import Service
|
|
|
|
eventlet.monkey_patch()
|
|
|
|
config_files = cfg.find_config_files(project="bufunfa", prog="bufunfa-central")
|
|
|
|
if os.path.exists('./etc/bufunfa-central.conf'):
|
|
config_files.append('./etc/bufunfa-central.conf')
|
|
|
|
cfg.CONF(sys.argv[1:], project="bufunfa", prog="bufunfa-central",
|
|
default_config_files=config_files)
|
|
|
|
log.setup("bufunfa")
|
|
|
|
launcher = service.launch(Service())
|
|
launcher.wait()
|