Update bin files like in Moniker

This commit is contained in:
Endre Karlson 2012-11-01 10:03:13 +01:00
parent 7311b6a5f5
commit 1034819ad8
4 changed files with 12 additions and 2 deletions

View File

@ -23,9 +23,14 @@ from billistix.api import service as api_service
eventlet.monkey_patch()
prog, project = utils.get_name(__name__)
config_files = cfg.find_config_files(project='billistix',
prog='billistix-api')
if os.path.exists('./etc/billistix-api.conf'):
config_files.append('./etc/billistix-api.conf')
cfg.CONF(sys.argv[1:], project='billistix', prog='billistix-api',
default_config_files=config_files)

View File

@ -11,6 +11,9 @@ eventlet.monkey_patch()
config_files = cfg.find_config_files(project="billistix", prog="billistix-central")
if os.path.exists('./etc/billistix-central.conf'):
config_files.append('./etc/billistix-central.conf')
cfg.CONF(sys.argv[1:], project="billistix", prog="billistix-central",
default_config_files=config_files)

View File

@ -26,6 +26,9 @@ eventlet.monkey_patch()
config_files = cfg.find_config_files(project="billistix", prog="billistix-recorder-sync")
if os.path.exists('./etc/billistix-recorder.conf'):
config_files.append('./etc/billistix-recorder.conf')
cfg.CONF(sys.argv[1:], project="billistix", prog="billistix-recorder-sync",
default_config_files=config_files)

View File

@ -8,7 +8,6 @@ if __name__ == '__main__':
cfg.CONF(sys.argv[1:])
storage.register_opts(cfg.CONF)
engine = storage.get_engine(cfg.CONF)
conn = engine.get_connection(cfg.CONF)
conn = storage.get_connection(cfg.CONF)
conn.setup_schema()