]>
Commit | Line | Data |
---|---|---|
7a38c880 | 1 | # see "man logrotate" for details |
2 | # rotate log files weekly | |
3 | weekly | |
4 | ||
5 | # keep 4 weeks worth of backlogs | |
6 | rotate 4 | |
7 | ||
8 | # send errors to root | |
6501cb8b | 9 | nomail |
7a38c880 | 10 | |
11 | # create new (empty) log files after rotating old ones | |
418675b2 | 12 | create 640 root logs |
7a38c880 | 13 | |
14 | # uncomment this if you want your log files compressed | |
15 | compress | |
16 | ||
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 |
21 | # an error message | |
3ca53228 | 22 | missingok |
7a38c880 | 23 | |
24 | # Logs are moved into directory for rotation | |
3ca53228 | 25 | olddir /var/log/archive |
7a38c880 | 26 | |
27 | # Do not rotate the log if it is empty | |
28 | notifempty | |
29 | ||
30 | # system-specific logs may be configured here | |
73796786 JK |
31 | |
32 | # RPM packages drop log rotation information into this directory | |
33 | include /etc/logrotate.d |