On Fri, Nov 03, 2000 at 08:07:57PM +0100, Manuel Hendel wrote:
> I would like to know who to rotate the logfiles by size. For example
> if a logfile gets bigger than 4MB it should be rotate and ziped to
> logfile.x.gz/bz2. How can I define this. I have seen this with oter
> distributions.
> 
> 
> 
Used the logrotate util.first you see the file which /etc/logrotate.conf.
for example.

/path/compress_bysize_file {
        rotete 4 
        compress -->you want
        create 0644 root 
        size=100k -->resize you want
}

or refreence the man page (man logrotate)

good luck..
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

-- 
YoonSuk Cho [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
GPG Key fingerprint 
        C37A 57CF BBBF 7F01 E4E4  92D5 B4C2 2245 A4C9 E7EF
        /./. oOoOo
Funny..Geek Code
oOoOo Version: 3.12 oOoOo
oOoOo GCS d- s+: a- C++ UL+++ P+ L+++ E- W++ N++ o+ K- w--  oOoOo
oOoOo O- M V- PS+ PE Y-- PGP++ t 5 X- R tv- b+ DI--- D-  oOoOo
oOoOo G++ e++ h* r !y+  oOoOo

Reply via email to