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