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:
parent
a4046414b6
commit
504e2066b1
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user