Mogens Kjaer wrote:
Mark Quitoriano wrote:
how do i prevent the logfiles from getting 2GB of file. what should i set in logrotate?
How often do you rotate the logs today?
Maybe you can do it more often, change "monthly" to "weekly" in /etc/logrotate.conf
man logrotate will tell you how to rotate based on size. If the log file gets to 2G in one day you might need to move the file logrotate from /etc/cron.daily to /etc/cron.hourly
Mogens
Or move the log for resourcehogd from /var/log/hog.log to /dev/null 2>&1 and forget about rotating the damn thing.