summaryrefslogtreecommitdiff
path: root/bin/heat-api-cfn
diff options
context:
space:
mode:
authortyagi <ishant.tyagi@hp.com>2015-05-21 02:53:14 -0700
committerTetiana Lashchova <tlashchova@mirantis.com>2015-07-06 17:27:28 +0300
commit2cf8aa6fad3a772192e8c74f1ae5f6400a7b1789 (patch)
treef2658adc2615db4ff29ca8b43be7d2ced001f7f6 /bin/heat-api-cfn
parentddd4189a2df0600bb1ca5d503490de0152b8770b (diff)
downloadheat-2cf8aa6fad3a772192e8c74f1ae5f6400a7b1789.tar.gz
Update wsgi.py to support reload from conf on SIGHUP
These changes are taken from the glance wsgi.py from where heat wsgi.py originated. These changes are to support reload of the service with new configuration parameters when SIGHUP is received. The reload of conf will only work if the server is running with workers. If workers is 0 then it wont reload. Co-Authored-By: Tetiana Lashchova <tlashchova@mirantis.com> Change-Id: I7fd391209591c149fb95136d92dd1d82cfb7a6de Closes-Bug: #1449807 Closes-Bug: #1276694
Diffstat (limited to 'bin/heat-api-cfn')
-rwxr-xr-xbin/heat-api-cfn4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/heat-api-cfn b/bin/heat-api-cfn
index 8c000d372..9a6ddd283 100755
--- a/bin/heat-api-cfn
+++ b/bin/heat-api-cfn
@@ -68,8 +68,8 @@ if __name__ == '__main__':
{'host': host, 'port': port})
profiler.setup('heat-api-cfn', host)
gmr.TextGuruMeditation.setup_autorun(version)
- server = wsgi.Server()
- server.start(app, cfg.CONF.heat_api_cfn, default_port=port)
+ server = wsgi.Server('heat-api-cfn', cfg.CONF.heat_api_cfn)
+ server.start(app, default_port=port)
systemd.notify_once()
server.wait()
except RuntimeError as e: