From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 10:46:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFD4C106567E for ; Fri, 18 Jul 2008 10:46:40 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE308FC1A for ; Fri, 18 Jul 2008 10:46:40 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 09C79B8030 for ; Fri, 18 Jul 2008 12:46:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1216377999; bh=rn9TOoyz3Z1VWHoeJYs7ZYhixDqVtc0CsfS fnRTFPs8=; h=Message-ID:Date:From:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Z akgHedGuGcUFd7vl/3rFRAHiwtaJH438mAEUQy32Ox+LURaxEEVPDvC3mp2sT3YbMn/ +DbYa573YacLrx55o46sJ4lEsb7RfGysycP8BaFthDuWDMM4iWiTj6Jn6truKJLESDn FdVqPFXNUKf93ietRAuOUUdDR8n6RCLbmRDc= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 08716-10 for ; Fri, 18 Jul 2008 12:46:38 +0200 (CEST) Received: from [127.0.0.1] (aejn125.neoplus.adsl.tpnet.pl [79.186.247.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lcwords.com) by relay.lc-words.com (Postfix) with ESMTPSA id 82E06B8026 for ; Fri, 18 Jul 2008 12:46:38 +0200 (CEST) Message-ID: <4880748D.8030902@lcwords.com> Date: Fri, 18 Jul 2008 12:46:37 +0200 From: Zbigniew Szalbot Organization: SGM Lifewords User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <487F2525.3030304@lcwords.com> <20080717072023.4b9e1d2f.wmoran@potentialtech.com> <487F2D9B.2010407@lcwords.com> <200807170904.26354.mario.lobo@ipad.com.br> <487F52EE.2050907@infracaninophile.co.uk> In-Reply-To: <487F52EE.2050907@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: Re: log size handling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2008 10:46:40 -0000 Hello, Matthew Seaman: >> Do I have to rotate them myself via a script in crontab? > > There are several ways to do this. Here's three in addition to the > script that someone else just posted: > > * Use the 'G' option to newsyslog. 'G' says that the filename > field of newsyslog.conf actually contains a shell globbing pattern > (wildcard) and files matching that should be rotated and compressed. So would something like this work? /var/log/site-*.log 644 12 * $M1D0 GZC /var/run/httpd.pid Many thanks in advance! -- Zbigniew Szalbot www.LCWords.com