promenade/entrypoint.sh
Chris Wedgwood 3771faa8fa [uwsgi] remove extraneous argument
-z or --socket-timeout work, don't need both

Change-Id: I8fe3d84bab890297b62c6e5dc166c7665a870739
2020-04-23 22:28:39 +00:00

31 lines
760 B
Bash
Executable File

#!/bin/bash
set -ex
PORT=${PORT:-9000}
UWSGI_TIMEOUT=${UWSGI_TIMEOUT:-300}
PROMENADE_THREADS=${PROMENADE_THREADS:-1}
PROMENADE_WORKERS=${PROMENADE_WORKERS:-4}
if [ "$1" = 'server' ]; then
exec uwsgi \
--http ":${PORT}" \
--http-timeout "${UWSGI_TIMEOUT}" \
--harakiri "${UWSGI_TIMEOUT}" \
--socket-timeout "${UWSGI_TIMEOUT}" \
--harakiri-verbose \
-b 32768 \
--lazy-apps \
--master \
--thunder-lock \
--die-on-term \
--paste config:/etc/promenade/api-paste.ini \
--enable-threads \
--threads "${PROMENADE_THREADS}" \
--workers "${PROMENADE_WORKERS}" \
--logger "null file:/dev/null" \
--log-route "null health"
fi
exec ${@}