nginx-ingress-controller: change location of pidfile to support dropped permissions

This commit is contained in:
Jonathan Pulsifer 2017-06-19 10:22:50 -04:00
parent a79d82dd5a
commit e08810a334
No known key found for this signature in database
GPG key ID: 0472D3B3F5012430
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
# A very simple nginx configuration file that forces nginx to start. # A very simple nginx configuration file that forces nginx to start.
pid /run/nginx.pid; pid /run/nginx/nginx.pid;
events {} events {}
http {} http {}

View file

@ -6,7 +6,7 @@
daemon off; daemon off;
worker_processes {{ $cfg.WorkerProcesses }}; worker_processes {{ $cfg.WorkerProcesses }};
pid /run/nginx.pid; pid /run/nginx/nginx.pid;
{{ if ne .MaxOpenFiles 0 }} {{ if ne .MaxOpenFiles 0 }}
worker_rlimit_nofile {{ .MaxOpenFiles }}; worker_rlimit_nofile {{ .MaxOpenFiles }};
{{ end}} {{ end}}