This commit is contained in:
52
logrotate.syslog
Normal file
52
logrotate.syslog
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# Please note, that changing of log file permissions in this
|
||||
# file is not sufficient if syslog-ng is used as log daemon.
|
||||
# It is required to specify the permissions in the syslog-ng
|
||||
# configuration /etc/syslog-ng/syslog-ng.conf.in as well.
|
||||
#
|
||||
|
||||
/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall {
|
||||
compress
|
||||
dateext
|
||||
maxage 365
|
||||
rotate 99
|
||||
missingok
|
||||
notifempty
|
||||
size +4096k
|
||||
create 640 root root
|
||||
sharedscripts
|
||||
postrotate
|
||||
/etc/init.d/syslog reload
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
|
||||
compress
|
||||
dateext
|
||||
maxage 365
|
||||
rotate 99
|
||||
missingok
|
||||
notifempty
|
||||
size +4096k
|
||||
create 640 root root
|
||||
sharedscripts
|
||||
postrotate
|
||||
/etc/init.d/syslog reload
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice {
|
||||
compress
|
||||
dateext
|
||||
maxage 365
|
||||
rotate 99
|
||||
missingok
|
||||
notifempty
|
||||
size +4096k
|
||||
create 640 news news
|
||||
sharedscripts
|
||||
postrotate
|
||||
/etc/init.d/syslog reload
|
||||
endscript
|
||||
}
|
||||
|
Reference in New Issue
Block a user