Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-openstack-armada-app / openstack-helm-infra / 0003-Set-Min-NGINX-handles.patch
1 From 93ec2454cba41bf3de1419bada1f145f1ca9dbd9 Mon Sep 17 00:00:00 2001
2 From: Al Bailey <Al.Bailey@windriver.com>
3 Date: Wed, 20 Feb 2019 13:56:27 -0600
4 Subject: [PATCH 3/4] Set Min NGINX handles
5
6 Signed-off-by: Robert Church <robert.church@windriver.com>
7 ---
8  mariadb/files/nginx.tmpl | 4 +++-
9  1 file changed, 3 insertions(+), 1 deletion(-)
10
11 diff --git a/mariadb/files/nginx.tmpl b/mariadb/files/nginx.tmpl
12 index 5ec3d0d..07b7cc5 100644
13 --- a/mariadb/files/nginx.tmpl
14 +++ b/mariadb/files/nginx.tmpl
15 @@ -23,7 +23,9 @@ daemon off;
16  
17  worker_processes {{ $cfg.WorkerProcesses }};
18  pid /run/nginx.pid;
19 -{{ if ne .MaxOpenFiles 0 }}
20 +{{ if lt .MaxOpenFiles 2048 }}
21 +worker_rlimit_nofile 2048;
22 +{{else}}
23  worker_rlimit_nofile {{ .MaxOpenFiles }};
24  {{ end }}
25  
26 -- 
27 2.16.5
28