Details |
Last modification |
View Log
Rev |
Author |
Line No. |
Line |
1 |
root |
1 |
# WARNING : don't use * wildcard as extension
|
|
|
2 |
# (glob in logrotate will try to rotate all files instead of
|
|
|
3 |
# only the basenames of the logs, i.e. it will rotate
|
|
|
4 |
# already rotated files and recompress them, taking
|
|
|
5 |
# exponential time...)
|
|
|
6 |
|
|
|
7 |
/var/log/auth.log /var/log/syslog /var/log/user.log /var/log/secure /var/log/messages /var/log/boot.log /var/log/mail/errors /var/log/mail/info /var/log/mail/warnings /var/log/cron/errors /var/log/cron/info /var/log/cron/warnings /var/log/kernel/errors /var/log/kernel/info /var/log/kernel/warnings /var/log/lpr/errors /var/log/lpr/info /var/log/lpr/warnings /var/log/news/news.err /var/log/news/news.notice /var/log/news/news.crit /var/log/daemons/errors /var/log/daemons/info /var/log/daemons/warnings /var/log/explanations {
|
|
|
8 |
sharedscripts
|
|
|
9 |
rotate 5
|
|
|
10 |
weekly
|
|
|
11 |
postrotate
|
|
|
12 |
[ -f /var/run/syslog-ng.pid ] && kill -HUP `cat /var/run/syslog-ng.pid` || true
|
|
|
13 |
[ -f /var/run/syslogd.pid ] && kill -HUP `cat /var/run/syslogd.pid` || true
|
|
|
14 |
endscript
|
|
|
15 |
}
|