nginx: use consistent pid file location accross recipe and init scripts

The recipe and the systemd service file use /run/nginx/nginx.pid,
while the sys v init script used /var/run/nginx/nginx.pid

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Pascal Bach 2017-05-10 09:14:09 +02:00 committed by Martin Jansa
parent 9e904b6714
commit 23a8b1f013

2
meta-webserver/recipes-httpd/nginx/files/nginx.init Executable file → Normal file
View File

@ -3,7 +3,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/nginx
NAME=nginx
DESC=nginx
PID=/var/run/nginx/nginx.pid
PID=/run/nginx/nginx.pid
test -x $DAEMON || exit 0