ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] logrotate для squid
@ 2005-11-16  9:31 Дворников Михаил
  2005-11-18 16:49 ` Vasily Kolomeets
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Дворников Михаил @ 2005-11-16  9:31 UTC (permalink / raw)
  To: Community

После перехода на следующий месяц,
сбился график архивации логов logrotate для squid.
Как сделать архивацию по воскресеньям?
-- 
С уважением, Дворников Михаил.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] logrotate для squid
  2005-11-16  9:31 [Comm] logrotate для squid Дворников Михаил
@ 2005-11-18 16:49 ` Vasily Kolomeets
  2005-11-18 20:13 ` Мерзляков Евгений Анатольевич
  2005-11-18 22:11 ` Vasily Kolomeets
  2 siblings, 0 replies; 4+ messages in thread
From: Vasily Kolomeets @ 2005-11-18 16:49 UTC (permalink / raw)
  To: ALT Linux Community

Дворников Михаил пишет:
> После перехода на следующий месяц,
> сбился график архивации логов logrotate для squid.
> Как сделать архивацию по воскресеньям?
Запускать по cron с отдельным для squid файлом конфигурации logrotate.

-- 
One man's constant is another man's variable.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] logrotate для squid
  2005-11-16  9:31 [Comm] logrotate для squid Дворников Михаил
  2005-11-18 16:49 ` Vasily Kolomeets
@ 2005-11-18 20:13 ` Мерзляков Евгений Анатольевич
  2005-11-18 22:11 ` Vasily Kolomeets
  2 siblings, 0 replies; 4+ messages in thread
From: Мерзляков Евгений Анатольевич @ 2005-11-18 20:13 UTC (permalink / raw)
  To: ALT Linux Community

у меня так:
/etc/logrotate.d/squid
ротатится каждое воскресенье и по access.log sarg отчеты делает

/var/log/squid/access.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
# Generate reports
    prerotate
        /usr/bin/sarg
    endscript
}
/var/log/squid/cache.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
}

/var/log/squid/store.log {
    weekly
    rotate 5
    copytruncate
    compress
    notifempty
    missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] logrotate для squid
  2005-11-16  9:31 [Comm] logrotate для squid Дворников Михаил
  2005-11-18 16:49 ` Vasily Kolomeets
  2005-11-18 20:13 ` Мерзляков Евгений Анатольевич
@ 2005-11-18 22:11 ` Vasily Kolomeets
  2 siblings, 0 replies; 4+ messages in thread
From: Vasily Kolomeets @ 2005-11-18 22:11 UTC (permalink / raw)
  To: ALT Linux Community

Дворников Михаил пишет:
> После перехода на следующий месяц,
> сбился график архивации логов logrotate для squid.
> Как сделать архивацию по воскресеньям?
BTW, cвежий перевод man-страницы logrotate(8) доступен по адресу:
https://bugzilla.altlinux.org/attachment.cgi?id=1255

-- 
One man's constant is another man's variable.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-18 22:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-16  9:31 [Comm] logrotate для squid Дворников Михаил
2005-11-18 16:49 ` Vasily Kolomeets
2005-11-18 20:13 ` Мерзляков Евгений Анатольевич
2005-11-18 22:11 ` Vasily Kolomeets

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git