Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

logrotate for BOINC
Monday, April 28th, 2008 at 6:27:37am MDT 

  1. # Log Rotation for BOINC Daemon Logs
  2. #
  3. # See http://boinc.berkeley.edu/ for more information about BOINC
  4. #
  5. # Daemon is stopped and then restarted after the logs are rotated.
  6. #
  7. # On restart, all results that checkpoint will fall back to the last one, if it exists.
  8. # On restart, all results that did not checkpoint will start from the beginning.
  9. #
  10. #
  11. # Author: Kathryn Marks <kathryn dot boinc at gmail dot com>
  12. # Pre/Post Rotate Logic: Eric Myers <myers at spy-hill dot net>
  13. #
  14. # Created: October 6, 2007
  15. # Last Modified: April 12, 2008
  16. ######################################################################
  17.  
  18. # Global Parameters
  19.  
  20. missingok
  21. compress
  22. delaycompress
  23. notifempty
  24. nomail
  25.  
  26. # Log Specific Parameters
  27.  
  28. # boinc.log
  29.  
  30. # Normal usage:
  31. # Rotate weekly and keep about 2 months worth
  32.  
  33. /var/lib/boinc/boinc.log
  34. {
  35.     weekly
  36.     rotate 8
  37.     create 664 boinc boinc
  38.     sharedscripts
  39.     prerotate
  40.         if [ -f /var/lock/subsys/boinc ];then
  41.             touch /var/run/boinc_was_running
  42.             /etc/init.d/boinc stop
  43.         fi
  44.     endscript
  45.     postrotate
  46.         if [ -f /var/run/boinc_was_running ]; then
  47.             rm /var/run/boinc_was_running
  48.             /etc/init.d/boinc start
  49.         fi
  50.     endscript
  51. }
  52.  
  53.  
  54. # error.log
  55.  
  56. # Normal usage:
  57. # Rotate monthly and keep about 2 months worth
  58.  
  59.  
  60. /var/lib/boinc/error.log
  61. {
  62.     monthly
  63.     rotate 2
  64.     create 664 boinc boinc
  65.     sharedscripts
  66.     prerotate
  67.         if [ -f /var/lock/subsys/boinc ];then
  68.             touch /var/run/boinc_was_running
  69.             /etc/init.d/boinc stop
  70.         fi
  71.     endscript
  72.     postrotate
  73.         if [ -f /var/run/boinc_was_running ]; then
  74.             rm /var/run/boinc_was_running
  75.             /etc/init.d/boinc start
  76.         fi
  77.     endscript
  78. }
  79.  
  80. ## 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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right