Welcome! Log In Create A New Profile

Advanced

Re: access logs hang

Lorenzo Raffio
October 09, 2014 03:58AM
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
Subject Author Posted

Access logs hang

Lorenzo Raffio October 08, 2014 08:34PM

Re: Access logs hang

B.R. October 09, 2014 02:56AM

Re: Access logs hang

B.R. October 09, 2014 03:02AM

Re: access logs hang

Lorenzo Raffio October 09, 2014 03:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready