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 <daniel.safta@windriver.com>
Change-Id: I3c69311602eaaf9a78d101b5b0198e9582497100
(cherry picked from commit 8ef5cd2377)
This commit is contained in:
Daniel Safta 2021-07-19 09:29:49 +00:00 committed by Charles Short
parent a4046414b6
commit 504e2066b1

View File

@ -62,7 +62,7 @@ start()
echo -n "Starting $DESC..." echo -n "Starting $DESC..."
start-stop-daemon --start --quiet --background --pidfile ${PIDFILE} \ 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} \ --worker-class ${WORKER} --workers ${WORKERS} --timeout ${TIMEOUT} \
--log-syslog \ --log-syslog \
--config '/usr/share/openstack-dashboard/guni_config.py' \ --config '/usr/share/openstack-dashboard/guni_config.py' \