nginx: change pid path

This commit is contained in:
Hardware 2016-09-25 22:10:15 +02:00
parent 32e07117d7
commit 87b57a74f3
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
worker_processes auto; worker_processes auto;
pid /var/run/nginx.pid; pid /tmp/nginx.pid;
daemon off; daemon off;
pcre_jit on; pcre_jit on;

View File

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
touch /var/run/nginx.pid chown -R $UID:$GID /etc/nginx /var/log/nginx /sites-enabled /conf.d /certs /www /tmp
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs /www /tmp
chmod -R 700 /certs chmod -R 700 /certs
exec su-exec $UID:$GID /sbin/tini -- nginx exec su-exec $UID:$GID /sbin/tini -- nginx