log size handling
Zbigniew Szalbot
z.szalbot at lcwords.com
Fri Jul 18 10:46:40 UTC 2008
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
More information about the freebsd-questions
mailing list