25 lines
636 B
Bash
Executable File
25 lines
636 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
# uwsgi wants just a path for unix socket
|
|
LISTEN=$(echo ${LLNG_LISTEN} | sed -E 's/^unix://')
|
|
|
|
exec uwsgi \
|
|
--plugin psgi \
|
|
--psgi /usr/share/lemonldap-ng/llng-server/llng-server.psgi \
|
|
--${LLNG_SOCKET_PROTO}-socket ${LISTEN} \
|
|
--chmod-socket=660 \
|
|
--master \
|
|
--max-worker-lifetime 604800 \
|
|
--max-requests 100000 \
|
|
--disable-logging \
|
|
--buffer-size 65535 \
|
|
--limit-post 0 \
|
|
--die-on-term \
|
|
--cheaper 2 \
|
|
--workers ${LLNG_WORKERS} \
|
|
--cheaper-initial 2 \
|
|
--cheaper-algo spare \
|
|
--cheaper-step 1
|