- logrotate for BOINC
- Monday, April 28th, 2008 at 6:27:37am MDT
- # Log Rotation for BOINC Daemon Logs
- #
- # See http://boinc.berkeley.edu/ for more information about BOINC
- #
- # Daemon is stopped and then restarted after the logs are rotated.
- #
- # On restart, all results that checkpoint will fall back to the last one, if it exists.
- # On restart, all results that did not checkpoint will start from the beginning.
- #
- #
- # Author: Kathryn Marks <kathryn dot boinc at gmail dot com>
- # Pre/Post Rotate Logic: Eric Myers <myers at spy-hill dot net>
- #
- # Created: October 6, 2007
- # Last Modified: April 12, 2008
- ######################################################################
- # Global Parameters
- missingok
- compress
- delaycompress
- notifempty
- nomail
- # Log Specific Parameters
- # boinc.log
- # Normal usage:
- # Rotate weekly and keep about 2 months worth
- /var/lib/boinc/boinc.log
- {
- weekly
- rotate 8
- create 664 boinc 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
- }
- # error.log
- # Normal usage:
- # Rotate monthly and keep about 2 months worth
- /var/lib/boinc/error.log
- {
- monthly
- rotate 2
- create 664 boinc 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
- }
- ## EOF ##
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.