mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
nginx: do not reduce max processes
Use the upstream value for NGX_MAX_PROCESSES (=1024) again. So it is safe to use `worker_processes auto;` (which sets it to the number of CPUs). Also use this directive in the conf instead of calculating the number in the init and passing it as argument. Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
@@ -16,9 +16,8 @@ start_service() {
|
||||
${NGINX_UTIL} init_lan
|
||||
|
||||
procd_open_instance
|
||||
NCPUS="$(grep -c '^processor\s*:' /proc/cpuinfo)"
|
||||
procd_set_param command /usr/sbin/nginx -c "${NGINX_CONF}" \
|
||||
-g "daemon off; worker_processes $NCPUS;"
|
||||
-g "daemon off;"
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_set_param file "${LAN_LISTEN}" "${LAN_LISTEN}.default" \
|
||||
|
||||
Reference in New Issue
Block a user