Opened 11 years ago

Closed 11 years ago

#297 closed defect (worksforme)

Reopen log files via kill -s USR1 PID don't work

Reported by: Igor Zubkov Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.2.x
Keywords: Cc:
uname -a: Linux prometheus.altlinux.org 2.6.18-ovz-rhel-alt13.M51.36 #1 SMP Wed Mar 14 17:13:07 UTC 2012 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.2.4
TLS SNI support enabled
configure arguments: --prefix=/ --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin --error-log-path=/var/log/nginx/nginx.error.log --http-log-path=/var/log/nginx/nginx.log --http-client-body-temp-path=/var/spool/nginx/tmp/client --http-proxy-temp-path=/var/spool/nginx/tmp/proxy --http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/spool/nginx/tmp/uwsgi --http-scgi-temp-path=/var/spool/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --user=_nginx --group=_nginx --with-http_ssl_module --with-cc-opt='-I /usr/include/pcre/' --with-rtsig_module --with-select_module --with-poll_module --with-aio_module --with-file-aio --with-mail --with-mail_ssl_module --with-imap --with-imap_ssl_module --with-md5=/usr/lib64 --with-http_ssl_module --add-module=cache_purge --add-module=ngx_ctpp2 --with-http_mp4_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_secure_link_module --with-http_perl_module

Description

Hi!

I am using nginx 1.2.4 (from ALT Linux Sisyphus package nginx-1.2.4-alt1). Simple:

kill -s USR1 PID

don't work. nginx don't reopen new access.log as it should.

Change History (1)

comment:1 by Maxim Dounin, 11 years ago

Resolution: worksforme
Status: newclosed

Most likely there is a problem with permissions on log files. Worker processes should be able to open them for writing for reopen to work.

Note: See TracTickets for help on using tickets.