From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 19 Nov 2005 01:13:24 +0500 From: =?KOI8-R?Q?=ED=C5=D2=DA=CC=D1=CB=CF=D7_=E5=D7=C7=C5=CE=C9=CA_=E1=CE?= =?KOI8-R?Q?=C1=D4=CF=CC=D8=C5=D7=C9=DE?= To: ALT Linux Community Subject: Re: [Comm] logrotate =?KOI8-R?Q?=C4=CC=D1?= squid Message-ID: <20051119011324.2df84174@hj-home.home> In-Reply-To: <437AFC83.7030309@soc.adm.yar.ru> References: <437AFC83.7030309@soc.adm.yar.ru> Organization: =?KOI8-R?Q?=F0=EB=E2_=E1=CB=D5=D3=D4=C9=CB=C1?= X-Mailer: Sylpheed-Claws 1.0.4a (GTK+ 1.2.10; i686-pc-linux-gnu) X-Operating-System: Gentoo Linux Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.90.0 X-Virus-Scanned: ClamAV using ClamSMTP Cc: X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 20:13:53 -0000 Archived-At: List-Archive: List-Post: у меня так: /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 }