Re: Nginx and logrotate

2013-08-09 Пенетрантность Sergey Kobzar
Продолжение исторрии: # la /var/log/nginx/ | grep access.log -rw-r--r-- 1 nginx root0 Aug 9 03:10 access.log -rw-r--r-- 1 nginx root 1.1G Aug 4 03:10 access.log-20130804 -rw-r--r-- 1 nginx root 2.5G Aug 6 03:10 access.log-20130805 -rw-r--r-- 1 nginx root 2.5G Aug 8 01:31

Re: Nginx and logrotate

2013-08-09 Пенетрантность Валентин Бартенев
On Friday 09 August 2013 13:12:17 Sergey Kobzar wrote: Продолжение исторрии: # la /var/log/nginx/ | grep access.log -rw-r--r-- 1 nginx root0 Aug 9 03:10 access.log -rw-r--r-- 1 nginx root 1.1G Aug 4 03:10 access.log-20130804 -rw-r--r-- 1 nginx root 2.5G Aug 6 03:10

Re: Nginx and logrotate

2013-08-08 Пенетрантность Boris Talovikov
08.08.2013 00:15, Sergey Kobzar пишет: On 08/07/13 20:56, Вячеслав Кокорин wrote: 07.08.2013, в 21:06, Sergey Kobzar sergey.kob...@itcraft.org написал(а): Продолжение истории: # ls -alh /var/log/nginx/ total 8.8G drwxr-xr-x 2 nginx root 4.0K Aug 7 03:10 . drwxr-xr-x 11 root root 4.0K

Re: Nginx and logrotate

2013-08-08 Пенетрантность Sergey Kobzar
On 08/08/13 10:43, Boris Talovikov wrote: 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 }

Re: Nginx and logrotate

2013-08-07 Пенетрантность Sergey Kobzar
Продолжение истории: # ls -alh /var/log/nginx/ total 8.8G drwxr-xr-x 2 nginx root 4.0K Aug 7 03:10 . drwxr-xr-x 11 root root 4.0K Aug 7 03:10 .. -rw-r--r-- 1 nginx root0 Aug 7 03:10 access.log -rw-r--r-- 1 nginx root 1.2G Aug 2 03:10 access.log-20130802 -rw-r--r-- 1 nginx root 1.2G

Re: Nginx and logrotate

2013-08-07 Пенетрантность Sergey Kobzar
On 08/07/13 20:56, Вячеслав Кокорин wrote: 07.08.2013, в 21:06, Sergey Kobzar sergey.kob...@itcraft.org написал(а): Продолжение истории: # ls -alh /var/log/nginx/ total 8.8G drwxr-xr-x 2 nginx root 4.0K Aug 7 03:10 . drwxr-xr-x 11 root root 4.0K Aug 7 03:10 .. -rw-r--r-- 1 nginx root

Re: Nginx and logrotate

2013-08-01 Пенетрантность Sergey Kobzar
Валентин, спасибо On 08/01/13 01:14, Валентин Бартенев wrote: https://bugs.gentoo.org/show_bug.cgi?id=473036 1. upstream explained it and accepted the bug report, this is now on their todo-list - это действительно так? 2. # la /var/log/ | grep nginx drwxr-x--- 2 rootroot 12K

Re: Nginx and logrotate

2013-08-01 Пенетрантность Sergey Kobzar
On 08/01/13 05:41, ad...@sysadmins.el.kg wrote: У меня (RHEL 6) в качестве postrotate-команды используется эта: /etc/init.d/nginx reload /dev/null 2/dev/null || true в скрипте /etc/init.d/nginx в функции отвечающей за reload используется killproc $nginx -HUP Попробуйте сменить -USR1 в вашей

Re: Nginx and logrotate

2013-08-01 Пенетрантность boris
01.08.2013, 13:34, Sergey Kobzar sergey.kob...@itcraft.org: On 08/01/13 05:41, ad...@sysadmins.el.kg wrote:  У меня (RHEL 6) в качестве postrotate-команды используется эта:  /etc/init.d/nginx reload /dev/null 2/dev/null || true  в скрипте /etc/init.d/nginx в функции отвечающей за reload

Re: Nginx and logrotate

2013-08-01 Пенетрантность Sergey Kobzar
On 08/01/13 12:20, Maxim Dounin wrote: Hello! On Thu, Aug 01, 2013 at 10:27:39AM +0300, Sergey Kobzar wrote: Валентин, спасибо On 08/01/13 01:14, Валентин Бартенев wrote: https://bugs.gentoo.org/show_bug.cgi?id=473036 1. upstream explained it and accepted the bug report, this is now on

Re: Nginx and logrotate

2013-07-31 Пенетрантность ad...@sysadmins.el.kg
01.08.2013 03:07, Sergey Kobzar пишет: 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