On Saturday 19 January 2002 01:05, you wrote: > I have a question about the log file. > I have run my Mandrake Linux for 2 weeks and I found the syslog and > other log files have become larger and larger. > > Is there any way I can limit the size of these log files and make it > automatically cut the beginning part when it over the size limit? > > Thank you! > > Daniel
My solution has not been to place a limit on the log files, but to change the time that the system uses to rotate (and delete them). As root: Go the your /etc/logrotate.conf Replace "weekly" with "daily". Replace "rotate 4" with "rotate 1" Replace all incidences of "monthly" with "weekly" This will go a long way to preventing the logs from getting out of hand. Years ago, I discovered that a small hard disk could get filled up with logs and cause all kinds of problems, so I do this as a matter of course with every installation. hth e
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com