a pastebin project

logrotate for BOINC

  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

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you 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.

fantasy-obligation
fantasy-obligation