Strange log file behavior
emailgrant at gmail.com
Mon Jul 15 09:49:47 UTC 2013
>> I noticed that most of my rotated nginx log files are empty (0 bytes).
>> My only access_log directive is in nginx.conf:
>> access_log /var/log/nginx/localhost.access_log combined;
>> Also nginx is currently logging to
>> /var/log/nginx/localhost.access_log.1 instead of localhost.access_log.
>> Does anyone know why these things are happening?
> This usually happens if someone don't ask nginx to reopen log
> files after a rotation. See here for details:
I use logrotate:
test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid`
Does it look OK?
More information about the nginx