2006-12-19 00:17:53 +01:00
|
|
|
#
|
|
|
|
# Please note, that changing of log file permissions in this
|
|
|
|
# file is not sufficient if syslog-ng is used as log daemon.
|
2008-09-13 12:19:17 +02:00
|
|
|
#
|
2006-12-19 00:17:53 +01:00
|
|
|
# It is required to specify the permissions in the syslog-ng
|
2008-09-13 12:19:17 +02:00
|
|
|
# configuration file /etc/syslog-ng/syslog-ng.conf as well.
|
2006-12-19 00:17:53 +01:00
|
|
|
#
|
|
|
|
|
2008-09-13 12:19:17 +02:00
|
|
|
# the firewall,acpid,NetworkManager log files
|
|
|
|
# are used by syslog-ng and rsyslog only, the
|
|
|
|
# other by all syslog daemons.
|
|
|
|
/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager {
|
2006-12-19 00:17:53 +01:00
|
|
|
compress
|
|
|
|
dateext
|
|
|
|
maxage 365
|
|
|
|
rotate 99
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
size +4096k
|
|
|
|
create 640 root root
|
|
|
|
sharedscripts
|
|
|
|
postrotate
|
2010-08-13 02:31:43 +02:00
|
|
|
/etc/init.d/syslog reload > /dev/null
|
2006-12-19 00:17:53 +01:00
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
2008-09-13 12:19:17 +02:00
|
|
|
# used by all syslog daemons
|
2006-12-19 00:17:53 +01:00
|
|
|
/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
|
2010-08-13 02:31:43 +02:00
|
|
|
/etc/init.d/syslog reload > /dev/null
|
2006-12-19 00:17:53 +01:00
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
2008-09-13 12:19:17 +02:00
|
|
|
# used by all syslog daemons
|
2006-12-19 00:17:53 +01:00
|
|
|
/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
|
2010-08-13 02:31:43 +02:00
|
|
|
/etc/init.d/syslog reload > /dev/null
|
2006-12-19 00:17:53 +01:00
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|