Merge "Add systemd notification support to heat"

This commit is contained in:
Jenkins
2014-02-19 23:22:19 +00:00
committed by Gerrit Code Review
8 changed files with 107 additions and 1 deletions

View File

@@ -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)