Date: Fri, 18 Jul 2008 12:46:37 +0200 From: Zbigniew Szalbot <z.szalbot@lcwords.com> To: freebsd-questions@freebsd.org Subject: Re: log size handling Message-ID: <4880748D.8030902@lcwords.com> In-Reply-To: <487F52EE.2050907@infracaninophile.co.uk> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4880748D.8030902>