forknote / forknote-pool

Mining pool for Bytecoin/Forknote based coins such as Bytecoin and Dashcoin.
https://github.com/forknote/forknote-pool
GNU General Public License v2.0
123 stars 185 forks source link

huge logs #56

Open pbt39ppc opened 6 years ago

pbt39ppc commented 6 years ago

Hello. the logs is growing up. should i use logrotate? seems like soon logfiles can be about 2Gb

pmitchev commented 6 years ago

Yes, you should use logrotate or another log management system

pbt39ppc commented 6 years ago

Here is my logrotate config

/home/krbpooluser/krbpool/logs/*.log {  
    yearly  
    missingok  
    rotate 180  
    compress  
    delaycompress
    notifempty
    copytruncate
    su krbpooluser
}

and what i get for all logs files, example for 1 file (pool_info.log) When running 1st time i get

pool_info.log
pool_info.log.1

all as expected, pool_info.log size is 0 then running 2nd time

pool_info.log  
pool_info.log.1  
pool_info.log.2.gz  

ang pool_info.log is equal as before 1st run, containing data from the last year