Re: Nginx log rotation

2012-12-27 Thread Antoine Jacoutot
On Thu, Dec 27, 2012 at 02:22:46AM +0100, Paolo Aglialoro wrote: Thank you, here is the diff for newsyslog.conf: 1c1 # $OpenBSD: newsyslog.conf,v 1.29 2011/04/14 20:32:34 sthen Exp $ --- # $OpenBSD: newsyslog.conf,v 1.30 2012/12/27 02:16:14 sthen Exp $ 17a18,19

Nginx log rotation

2012-12-26 Thread Paolo Aglialoro
Hi misc! Considering that with 5.2 nginx is going to be (already is?) the official http server (I'm using it with joy, I like its minimalistic approach), is there some officially recommended way to rotate the logs in /var/www/logs/ which are getting bigger and bigger? Btw, as apache is still

Re: Nginx log rotation

2012-12-26 Thread Antoine Jacoutot
On Wed, Dec 26, 2012 at 11:02:56PM +0100, Paolo Aglialoro wrote: Hi misc! Considering that with 5.2 nginx is going to be (already is?) the official http server (I'm using it with joy, I like its minimalistic approach), is there some officially recommended way to rotate the logs in

Re: Nginx log rotation

2012-12-26 Thread Nick Holland
On 12/26/12 17:02, Paolo Aglialoro wrote: ... Btw, as apache is still present in faq, is any man nginx.conf / faq entry planned or the only nginx.org is THE doc resource? Thanks The reason for FAQ entries about things like Apache/httpd being chrooted is that it isn't standard in the main

Re: Nginx log rotation

2012-12-26 Thread Paolo Aglialoro
Thank you, here is the diff for newsyslog.conf: 1c1 # $OpenBSD: newsyslog.conf,v 1.29 2011/04/14 20:32:34 sthen Exp $ --- # $OpenBSD: newsyslog.conf,v 1.30 2012/12/27 02:16:14 sthen Exp $ 17a18,19 #/var/www/logs/access.log 644 7 *24ZB kill -s USR1 `cat

Re: Nginx log rotation

2012-12-26 Thread Michał Markowski
2012/12/27 Paolo Aglialoro paol...@gmail.com: #/var/www/logs/access.log 644 7 *24ZB kill -s USR1 `cat /var/run/nginx.pid` #/var/www/logs/error.log 644 7 *24ZB kill -s USR1 `cat /var/run/nginx.pid` Why B flag and global read permissions?

Re: Nginx log rotation

2012-12-26 Thread Paolo Aglialoro
B flag to avoid newsyslog manipulating contents of log files, like it happens for pflog 644 was just for being comfortable (it comes from a 1 user system), it may of course be changed to be stricter On Thu, Dec 27, 2012 at 2:35 AM, Michał Markowski markows...@gmail.comwrote: 2012/12/27 Paolo

Re: Nginx log rotation

2012-12-26 Thread Michał Markowski
2012/12/27 Paolo Aglialoro paol...@gmail.com: B flag to avoid newsyslog manipulating contents of log files, like it happens for pflog Yep, but /var/log/pflog is binary, contrary to nginx logs. 644 was just for being comfortable (it comes from a 1 user system), it may of course be changed to