Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx and logrotate



On Thursday 01 August 2013 01:07:32 Sergey Kobzar wrote:
> Linux 3.8.13-gentoo x86_64
> nginx-1.4.1-r2
> logrotate-3.8.4
> 
> cat /etc/logrotate.d/nginx:
> /var/log/nginx/*.log {
>          daily
>          rotate 5
>          missingok
>          nocompress
>          sharedscripts
>          postrotate
>                  test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid`
>          endscript
> }
> 
> /etc/logrotate.conf:
> weekly
> rotate 4
> create
> dateext
> compress
> notifempty
> nomail
> noolddir
> include /etc/logrotate.d
> /var/log/wtmp {
>      monthly
>      create 0664 root utmp
>          minsize 1M
>      rotate 1
> }
> /var/log/btmp {
>      missingok
>      monthly
>      create 0600 root utmp
>      rotate 1
> }
> 
> # ls -alh /var/log/nginx/ | grep access.log
> -rw-r--r--  1 nginx root    0 Jul 30 03:10 access.log
> -rw-r--r--  1 nginx root 4.7G Jul 18 10:09 access.log-20130712
> -rw-r--r--  1 nginx root 7.6G Jul 29 09:46 access.log-20130719
> -rw-r--r--  1 nginx root 1.4G Jul 31 22:04 access.log-20130730
> 
> ..   access.log  ,   access.log-20130730.
> 
> kill -USR1 `cat /run/nginx.pid`   .
> 
>    ?
> 

https://bugs.gentoo.org/show_bug.cgi?id=473036

--
 
http://nginx.org/en/donation.html

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.