6d315af
# Log Rotation for BOINC Daemon Logs
6d315af
#
6d315af
# See http://boinc.berkeley.edu/ for more information about BOINC
6d315af
#
6d315af
# Daemon is stopped and then restarted after the logs are rotated.
6d315af
#
6d315af
# On restart, all results that checkpoint will fall back to the last one, if it exists.
6d315af
# On restart, all results that did not checkpoint will start from the beginning.
6d315af
6d315af
# Author: Kathryn Marks <kathryn.boinc@gmail.com>
6d315af
# Created: October 6, 2007
151584f
# Modified: Milos Jakubicek <xjakub@fi.muni.cz>
07759f0
# Last Modified: July 19, 2009
6d315af
######################################################################
6d315af
151584f
/var/log/boinc.log /var/log/boincerr.log
6d315af
{
dcaa0f5
	missingok
dcaa0f5
	compress
dcaa0f5
	delaycompress
dcaa0f5
	notifempty
dcaa0f5
	nomail
dcaa0f5
	create 664 boinc boinc
dcaa0f5
	sharedscripts
dcaa0f5
	prerotate
dcaa0f5
	if [ -f /var/lock/subsys/boinc-client ]; then
07759f0
		touch /tmp/boinc_was_running
dcaa0f5
		service boinc-client stop >& /dev/null
dcaa0f5
	fi
dcaa0f5
	endscript
dcaa0f5
	postrotate
07759f0
	if [ -f /tmp/boinc_was_running ]; then
07759f0
		rm /tmp/boinc_was_running
dcaa0f5
		service boinc-client start >& /dev/null
dcaa0f5
	fi
dcaa0f5
	endscript
6d315af
}