rendered paste body# Global Parameters
missingok
compress
delaycompress
notifempty
nomail
# Log Specific Parameters
# boinc.log
# Normal usage:
# Rotate weekly and keep about 2 months worth
# Test usage:
# Rotate daily and keep about 2 weeks worth
/var/lib/boinc/boinc.log
{
# weekly
daily
# rotate 8
rotate 14
create 664 root boinc
sharedscripts
prerotate
/etc/init.d/boinc stop
endscript
postrotate
/etc/init.d/boinc start
endscript
}
# error.log
# Normal usage:
# Rotate monthly and keep about 2 months worth
# Test usage:
# Rotate daily and keep about 2 weeks worth
/var/lib/boinc/error.log
{
# monthly
daily
# rotate 2
rotate 14
create 664 root boinc
sharedscripts
prerotate
if [ -f /var/lock/subsys/boinc ];then
touch /var/run/boinc_was_running
/etc/init.d/boinc stop
fi
endscript
postrotate
if [ -f /var/run/boinc_was_running ]; then
rm /var/run/boinc_was_running
/etc/init.d/boinc start
fi
endscript
}