bufunfa/bin/bufunfa-central
Endre Karlson 0e9834636b Fixup pyflakes, pep8 and broken things
Change-Id: Ia1878234632ef57cf5e74072d42ff8aa526583ff
2012-11-19 10:59:19 +01:00

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()