Explicitly calling start for sahara-api in sahara-all

Now calling launch_api_service and service.start() for
sahara-api when launching sahara-all to get the
api server to start, even in debug mode.

Change-Id: I8668a70b99e3f1fba98ec9df783b7962b9632037
Closes-Bug: #1521266
This commit is contained in:
Chad Roberts 2015-12-01 11:59:29 -05:00
parent c1ff2a7319
commit 673952f024
2 changed files with 3 additions and 2 deletions

View File

@ -58,5 +58,5 @@ def main():
server.setup_auth_policy()
launcher = server.get_process_launcher()
launcher.launch_service(server.SaharaWSGIService("sahara-all", app))
launcher.wait()
server.launch_api_service(
launcher, server.SaharaWSGIService("sahara-all", app))

View File

@ -157,4 +157,5 @@ def get_process_launcher():
def launch_api_service(launcher, service):
launcher.launch_service(service, workers=CONF.api_workers)
service.start()
launcher.wait()