diff --git a/0001-modify-uwsgi-configuration-file-fields.patch b/0001-modify-uwsgi-configuration-file-fields.patch new file mode 100644 index 0000000000000000000000000000000000000000..71d2144d5b9dbed4764679bba66a9b9fd1ff6c8c --- /dev/null +++ b/0001-modify-uwsgi-configuration-file-fields.patch @@ -0,0 +1,35 @@ +From e48ee859dcc753fec77e23c465019f0d1572f36a Mon Sep 17 00:00:00 2001 +From: wenxin +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 + diff --git a/aops-vulcanus.spec b/aops-vulcanus.spec index 80a52634dc275e352defc546a1761d6a07225442..e1256440dd105d66654247b71a739ea1782cb5e2 100644 --- a/aops-vulcanus.spec +++ b/aops-vulcanus.spec @@ -1,10 +1,11 @@ Name: aops-vulcanus Version: v1.1.1 -Release: 1 +Release: 2 Summary: A basic tool libraries of aops, including logging, configure and response, etc. License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz +Patch0001: 0001-modify-uwsgi-configuration-file-fields.patch BuildRequires: python3-setuptools Requires: python3-concurrent-log-handler python3-xmltodict python3-pyyaml python3-marshmallow >= 3.13.0 @@ -28,7 +29,7 @@ tools for aops, it's about aops deploy %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 # build for aops-vulcanus @@ -57,6 +58,9 @@ cp -r scripts %{buildroot}/opt/aops/ %changelog +* Tue Dec 27 2022 wenxin - v1.1.1-2 +- Modify uwsgi configuration file fields + * Fri Dec 02 2022 wenxin - v1.1.1-1 - update get response