36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From e48ee859dcc753fec77e23c465019f0d1572f36a Mon Sep 17 00:00:00 2001
|
|
From: wenxin <shusheng.wen@outlook.com>
|
|
Date: Tue, 27 Dec 2022 11:09:06 +0800
|
|
Subject: [PATCH] Modify uwsgi configuration file fields
|
|
|
|
---
|
|
aops-vulcanus | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/aops-vulcanus b/aops-vulcanus
|
|
index 78a43a8..368c57f 100644
|
|
--- a/aops-vulcanus
|
|
+++ b/aops-vulcanus
|
|
@@ -40,6 +40,8 @@ function create_config_file() {
|
|
daemonize=$(get_config "${config_file}" "uwsgi" "daemonize")
|
|
http_timeout=$(get_config "${config_file}" "uwsgi" "http-timeout")
|
|
harakiri=$(get_config "${config_file}" "uwsgi" "harakiri")
|
|
+ processes=$(get_config "${config_file}" "uwsgi" "processes")
|
|
+ threads=$(get_config "${config_file}" "uwsgi" "threads")
|
|
|
|
check_file $daemonize
|
|
echo "[INFO] run ${service_name} under path: ${wsgi_file}"
|
|
@@ -63,6 +65,9 @@ pidfile=${OUT_PATH}/${service_name}.pid
|
|
callable=app
|
|
http-timeout=${http_timeout}
|
|
harakiri=${harakiri}
|
|
+threads=${threads}
|
|
+processes=${processes}
|
|
+lazy-apps=true
|
|
daemonize=${daemonize}" >"${OUT_PATH}"/"${service_name}".ini
|
|
chown root: ${OUT_PATH}/"${service_name}".ini
|
|
chmod 750 ${OUT_PATH}/"${service_name}".ini
|
|
--
|
|
Gitee
|
|
|