Changes between Version 6 and Version 7 of LogRotate


Ignore:
Timestamp:
Oct 13, 2009, 1:16:02 PM (14 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LogRotate

    v6 v7  
    22= Log rotation =
    33
    4 The log files generated by BOINC's daemons and servers can grow to gigabyte size in a few days or weeks, and will eventually fill up your disk. When this happens your project will grind to a halt. In addition, if you use db_dump to export statistics, directories with names of the form '''html/stats_2006_4_3_15_50_2''' will build up, and you'll need to delete and possibly archive them. Most projects do this manually.
     4The log files generated by BOINC's daemons and servers can grow to gigabyte size in a few days or weeks,
     5and will eventually fill up your disk.
     6When this happens your project will grind to a halt.
     7In addition, if you use db_dump to export statistics,
     8directories with names of the form '''html/stats_2006_4_3_15_50_2''' will build up,
     9and you'll need to delete and possibly archive them. Most projects do this manually.
    510
    611Initially you can deal with log files by hand, but eventually you may want an automated solution. Log rotation typically must be done while the project is [StartTool stopped].
    712
    813== Log Compression ==
    9 Here's a shell script (from Nicolas Alvarez) that tars and compresses log files (you'll still need to eventually deal with the compressed files). You can run this script as a periodic task in [ProjectConfigFile config.xml].
     14Here's a shell script (from Nicolas Alvarez) that tars and compresses log files
     15(you'll still need to eventually deal with the compressed files).
     16You can run this script as a periodic task in [ProjectConfigFile config.xml].
    1017
    1118{{{
     
    2734
    2835== {{{logrotate}}} ==
    29 Other projects use the Linux 'logrotate' program. For example, Predictor@home uses the following logrotate input file (they run this while the project is down for database backups):
     36Other projects use the Linux 'logrotate' program.
     37WCG uses the following logrotate file, which they run while the project is online:
    3038
     39{{{
     40/our/log/directory/log_server1/*.log {
     41    compress
     42    rotate 10
     43    daily
     44    copytruncate
     45    olddir /our/log/directory/log_server1/archive
     46}
     47}}}
     48
     49Predictor@home uses the following logrotate input file (they run this while the project is down for database backups):
    3150
    3251{{{