public inbox for gentoo-user-ru@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sergey Kobzar <sergey.kobzar@mail.ru>
To: gentoo-user-ru@lists.gentoo.org
Subject: Re: [gentoo-user-ru] Logrotate не посылает сигнал процессу
Date: Sun, 25 Aug 2013 11:53:17 +0300	[thread overview]
Message-ID: <5219C5FD.5030802@mail.ru> (raw)
In-Reply-To: <521764D6.2040804@mail.ru>

On 08/23/13 16:34, Sergey Kobzar wrote:

>> Сделайте touch первой командой в списке.
>
> Сделал:
>
> postrotate
>      touch /tmp/logrotate-nginx; test -r /run/nginx.pid && kill -USR1
> `cat /run/nginx.pid`
> endscript
>
> Так вообще будут независимые команды.
>
> Завтра увидим результат...


Вчера логи отротировались нормально. Файл /tmp/logrotate-nginx был 
создан и я его удалил.


Сегодня:

-rw-r--r--  1 nginx root    0 Aug 25 03:10 access.log
-rw-r--r--  1 nginx root 219M Aug 21 10:42 access.log-20130821
-rw-r--r--  1 nginx root 1.1G Aug 22 03:10 access.log-20130822
-rw-r--r--  1 nginx root 1.4G Aug 23 11:06 access.log-20130823
-rw-r--r--  1 nginx root 868M Aug 24 03:10 access.log-20130824
-rw-r--r--  1 nginx root 1.2G Aug 25 11:50 access.log-20130825

# la /tmp/logrotate-nginx
ls: cannot access /tmp/logrotate-nginx: No such file or directory

Похоже, что баг logrotate...


  parent reply	other threads:[~2013-08-25  8:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21 18:30 [gentoo-user-ru] Logrotate не посылает сигнал процессу Sergey Kobzar
2013-08-21 18:42 ` Edward Toroshchin
2013-08-21 18:55   ` Sergey Kobzar
2013-08-21 19:08     ` Sergey Kobzar
2013-08-22 18:34 ` Peter Volkov
2013-08-22 19:08   ` Sergey Kobzar
2013-08-23  8:03     ` Sergey Kobzar
2013-08-23  9:10       ` Alex Efros
2013-08-23 13:26         ` Sergey Kobzar
2013-08-23  9:52       ` Peter Volkov
2013-08-23 13:34         ` Sergey Kobzar
2013-08-23 13:48           ` Pavel Labushev
     [not found]           ` <20130823134904.773C6E0C13@pigeon.gentoo.org>
2013-08-23 14:07             ` Sergey Kobzar
2013-08-23 14:51               ` Pavel Labushev
     [not found]               ` <20130823145231.89FF4E0AAA@pigeon.gentoo.org>
2013-08-23 14:59                 ` Sergey Kobzar
2013-08-25  8:53           ` Sergey Kobzar [this message]
2013-08-28  9:44             ` Sergey Kobzar
2013-08-28  9:51               ` Sergey Kobzar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5219C5FD.5030802@mail.ru \
    --to=sergey.kobzar@mail.ru \
    --cc=gentoo-user-ru@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox