Merge "Add systemd notification support to heat"
This commit is contained in:
@@ -41,6 +41,7 @@ from oslo.config import cfg
|
||||
|
||||
from heat.common import config
|
||||
from heat.common import wsgi
|
||||
from heat.common import notify
|
||||
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
@@ -63,6 +64,7 @@ if __name__ == '__main__':
|
||||
LOG.info('Starting Heat API on %s:%s' % (host, port))
|
||||
server = wsgi.Server()
|
||||
server.start(app, cfg.CONF.heat_api_cfn, default_port=port)
|
||||
notify.startup_notify(cfg.CONF.onready)
|
||||
server.wait()
|
||||
except RuntimeError as e:
|
||||
sys.exit("ERROR: %s" % e)
|
||||
|
||||
Reference in New Issue
Block a user