]>
Commit | Line | Data |
---|---|---|
7a634c73 ER |
1 | # See "man logrotate" for details. |
2 | # Rotate log files weekly. | |
5b8af45b | 3 | weekly |
7a38c880 | 4 | |
3ce0a7f8 AM |
5 | # Keep 10 weeks worth of backlogs. |
6 | rotate 10 | |
7a38c880 | 7 | |
88983181 | 8 | # Rotate logs when they grow bigger than 100kB |
13317f3a | 9 | minsize 100k |
88983181 | 10 | |
7a634c73 | 11 | # Don't mail old log files to any address. |
6501cb8b | 12 | nomail |
7a38c880 | 13 | |
7a634c73 | 14 | # Create new (empty) log files after rotating old ones. |
418675b2 | 15 | create 640 root logs |
7a38c880 | 16 | |
539dc635 PG |
17 | # use date as a suffix of the rotated file |
18 | dateext | |
19 | ||
7a634c73 | 20 | # Uncomment this if you want your log files compressed. |
7a38c880 | 21 | compress |
22 | ||
7a634c73 | 23 | # Postpone compression of the previous log file to the next rotation cycle. |
43c642af | 24 | nodelaycompress |
7a38c880 | 25 | |
7a38c880 | 26 | # If the log file is missing, go on to the next one without issuing |
7a634c73 | 27 | # an error message. |
3ca53228 | 28 | missingok |
7a38c880 | 29 | |
7a634c73 | 30 | # Logs are moved into directory for rotation. |
b7ba52f9 | 31 | olddir /var/log/archive |
7a38c880 | 32 | |
7a634c73 | 33 | # Do not rotate the log if it is empty. |
7a38c880 | 34 | notifempty |
35 | ||
36 | # system-specific logs may be configured here | |
73796786 | 37 | |
7a634c73 | 38 | # RPM packages drop log rotation information into this directory. |
73796786 | 39 | include /etc/logrotate.d |