A Full Disk from Log Files

I previously wrote that our MythTV system had filled the hard drive with log files (Fun with a Full Disk). I’ve dealt with this problem a few times, and the cause is typically that we’ve left live TV playing for many hours and the front-end has locked-up. This happened again recently, and I had a thought: use cron to periodically delete the log files. I threw this line into the crontab to delete the logs every day:

3 3 * * * rm -f /var/log/mythtv/*

Share Your Thoughts ( Comments Already)

Older Comments (1)

Dan & Sherree & Patrick currently uses Facebook for comments. Older comments are still here for readers, though. Read old comments »

Log file rotation is another method for managing your large log files:

http://www.mythtv.org/wiki/Log_File_Rotation

« Close old comments