﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1176	nginx changes ownership of /var/log/nginx/error.log even if error_log is configured to syslog	selivan@…		"nginx.conf:

{{{
...
user www-data;
error_log syslog:server=unix:/dev/log,nohostname,facility=local7,tag=nginx_error_log,severity=info;
...
}}}

After receiving SIGUSR1 nginx changes ownership of `/var/log/nginx/error.log` from syslog to www-data, breaking syslog ability to write to this file.

I think this behavior is unexpected. It should be changed(do not touch files not mentioned in config) or at least documented here: http://nginx.org/en/docs/control.html in section ""Rotating Log-files""."	defect	closed	minor		documentation	1.11.x	fixed			Linux web4 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: nginx/1.11.7
built with OpenSSL 1.0.1f 6 Jan 2014
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-threads --with-http_gunzip_module --with-http_gzip_static_module --with-http_geoip_module --add-module=/home/user/NGINX/nginx-1.11.7/debian/modules/nginx-echo --add-module=/home/user/NGINX/nginx-1.11.7/debian/modules/naxsi/naxsi_src
"
