From: Tomas Sedovic Date: Wed, 21 Mar 2012 15:41:54 +0000 (+0100) Subject: Display message on heat-api and heat-engine startup X-Git-Tag: 2014.1~2173 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=53859a38cac8df4a4a6c57b6ac6a95becc2549b5;p=openstack-build%2Fheat-build.git 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. --- diff --git a/bin/heat-api b/bin/heat-api index 77afe9d1..8917308c 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 1ec36aeb..d162bf27 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)