Thanks for the reply. I compiled nginx from source, 1.7.5. I'm on Ubuntu 14..04. I know there's a log rotation function built-in but I prefer to work things out by myself. :DSo I created this script to automatically rotate my logs:find /var/www/ -ipath */logs/access.log.gz -execdir mv "{}" "old/`date +\%G-\%m-\%d`-access.log.gz" \;
wait
/opt/nginx/sbin/nginx -s reopen
Maybe the problem is that logs get reopen before files are moved? But "wait" should deal with that.._______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx