# Gavin Andresen # 2010-07-12 16:39:47 # https://bitcointalk.org/index.php?topic=292.msg2338#msg2338 Reminder to anybody running a bitcoind server: be sure the debug.log isn't filling up your server's disk. With the slashdotting, now might be a good time to setup a debug.log housekeeping system. @p{par} I'm doing this on my Debian server: @p{par} My crontab: Code: # Rotate bitcoin logs @p{brk} 0 8 * * * /usr/sbin/logrotate @p{--}state /home/gavin/.bitcoin/logrotate.state /home/gavin/bc_logrotate.conf @p{brk} My bc_logrotate.conf file: Code: # @p{brk} # Rotate the bitcoin debug.log file @p{brk} # @p{brk} # This should be added to crontab to be run every day: @p{brk} # /usr/sbin/logrotate /path/to/bc_logrotate.conf @p{brk} # @p{brk} compress @p{brk} copytruncate @p{par} /home/gavin/.bitcoin/debug.log { @p{brk} @p{(tt} @p{??)}rotate 5 @p{brk} } @p{brk}