From 8ef5cd2377a7f1872495e9771ced9bd4313023cd Mon Sep 17 00:00:00 2001 From: Daniel Safta Date: Mon, 19 Jul 2021 09:29:49 +0000 Subject: [PATCH] Added --preload when starting horizon used --preload parameter when starting horizon dashboard. This leads to faster startup and lower memory consumption. It also fixes missing env variable DJANGO_SETTINGS_MODULE in py3. Story: 2008454 Task: 42856 Signed-off-by: Daniel Safta Change-Id: I3c69311602eaaf9a78d101b5b0198e9582497100 --- openstack/python-horizon/centos/files/horizon.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack/python-horizon/centos/files/horizon.init b/openstack/python-horizon/centos/files/horizon.init index a2b15bc8..948f69cf 100755 --- a/openstack/python-horizon/centos/files/horizon.init +++ b/openstack/python-horizon/centos/files/horizon.init @@ -60,9 +60,9 @@ start() mkdir -p ${TMPUPLOADDIR} echo -n "Starting $DESC..." - + start-stop-daemon --start --quiet --background --pidfile ${PIDFILE} \ - --make-pidfile --exec ${PYTHON} -- ${EXEC} --bind ${BIND}:${PORT} \ + --make-pidfile --exec ${PYTHON} -- ${EXEC} --preload --bind ${BIND}:${PORT} \ --worker-class ${WORKER} --workers ${WORKERS} --timeout ${TIMEOUT} \ --log-syslog \ --config '/usr/share/openstack-dashboard/guni_config.py' \