From 53859a38cac8df4a4a6c57b6ac6a95becc2549b5 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Wed, 21 Mar 2012 16:41:54 +0100 Subject: [PATCH] Display message on heat-api and heat-engine startup When a Heat server is started, the user will now see a message that says so and shows the port number the server uses. --- bin/heat-api | 4 +++- bin/heat-engine | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/heat-api b/bin/heat-api index 77afe9d1f2..8917308c01 100755 --- a/bin/heat-api +++ b/bin/heat-api @@ -47,8 +47,10 @@ if __name__ == '__main__': app = config.load_paste_app(conf) + port = config.DEFAULT_PORT + print 'Starting Heat API on port %s' % port server = wsgi.Server() - server.start(app, conf, default_port=config.DEFAULT_PORT) + server.start(app, conf, default_port=port) server.wait() except RuntimeError, e: sys.exit("ERROR: %s" % e) diff --git a/bin/heat-engine b/bin/heat-engine index 1ec36aeb4c..d162bf27e0 100755 --- a/bin/heat-engine +++ b/bin/heat-engine @@ -43,8 +43,10 @@ if __name__ == '__main__': app = config.load_paste_app(conf) + port = config.DEFAULT_PORT+1 + print 'Starting Heat Engine on port %s' % port server = wsgi.Server() - server.start(app, conf, default_port=config.DEFAULT_PORT+1) + server.start(app, conf, default_port=port) server.wait() except RuntimeError, e: sys.exit("ERROR: %s" % e)