summaryrefslogtreecommitdiffstats
path: root/bin/nova-api
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-02-22 17:58:01 -0800
committerJustin Santa Barbara <justin@fathomdb.com>2011-02-22 17:58:01 -0800
commite37e7b91a9fb5664ad50c1ff38e95f1a2d655c06 (patch)
tree3b078ca449be7b64703510ec2d8ae4a403b1a699 /bin/nova-api
parent79f6c437b486262bab3faacb59197a5cae30b2bd (diff)
Support service-like wait behaviour for API service
Diffstat (limited to 'bin/nova-api')
-rwxr-xr-xbin/nova-api3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nova-api b/bin/nova-api
index 99417e6c6..ccb7701ae 100755
--- a/bin/nova-api
+++ b/bin/nova-api
@@ -49,4 +49,5 @@ if __name__ == '__main__':
if not conf:
LOG.error(_("No paste configuration found for: %s"), 'nova-api.conf')
else:
- apiservice.serve(conf)
+ service = apiservice.serve(conf)
+ service.wait()