Merge "Adding print out of server information into launch script"

This commit is contained in:
Jenkins 2014-10-24 05:56:33 +00:00 committed by Gerrit Code Review
commit 39a6b0c725
1 changed files with 26 additions and 0 deletions

View File

@ -128,6 +128,8 @@ def launch_any(transport, options):
threads = [eventlet.spawn(LAUNCH_OPTIONS[option], transport)
for option in options]
print('Server started.')
[thread.wait() for thread in threads]
@ -140,9 +142,33 @@ LAUNCH_OPTIONS = {
}
MISTRAL_TITLE = """
|\\\ //| // // |||||| |||\\\ /\ ||
||\\\ //|| // || || || //\\\ ||
|| \\\// || || || || || // // \\\ ||
|| \/ || || \\\ || || \\\ //-||-\\\ ||
|| || || || || || || // \\\ ||
|| || || _// || || || // \\\ |||||
Mistral Workflow Service, version 0.1, 2014
"""
def print_server_info():
print(MISTRAL_TITLE)
comp_str = "[%s]" % ','.join(LAUNCH_OPTIONS) \
if cfg.CONF.server == ['all'] else cfg.CONF.server
print('Launching server components %s...' % comp_str)
def main():
try:
config.parse_args()
print_server_info()
logging.setup('Mistral')
# Please refer to the oslo.messaging documentation for transport