diff options
Diffstat (limited to 'etc/logrotate.d')
-rw-r--r-- | etc/logrotate.d/elog-save-summary | 10 | ||||
-rw-r--r-- | etc/logrotate.d/mpd | 9 | ||||
-rw-r--r-- | etc/logrotate.d/openrc | 4 | ||||
-rw-r--r-- | etc/logrotate.d/rsyncd | 9 | ||||
-rw-r--r-- | etc/logrotate.d/syslog-ng | 83 |
5 files changed, 115 insertions, 0 deletions
diff --git a/etc/logrotate.d/elog-save-summary b/etc/logrotate.d/elog-save-summary new file mode 100644 index 0000000..f2cfc66 --- /dev/null +++ b/etc/logrotate.d/elog-save-summary @@ -0,0 +1,10 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Rotate the log created by the save_summary elog module. + +/var/log/portage/elog/summary.log { + su portage portage + missingok + nocreate + delaycompress +} diff --git a/etc/logrotate.d/mpd b/etc/logrotate.d/mpd new file mode 100644 index 0000000..597c4fb --- /dev/null +++ b/etc/logrotate.d/mpd @@ -0,0 +1,9 @@ +/var/lib/mpd/log { + missingok + weekly + delaycompress + compress + postrotate + /etc/init.d/mpd --quiet reload + endscript +} diff --git a/etc/logrotate.d/openrc b/etc/logrotate.d/openrc new file mode 100644 index 0000000..5e5e64b --- /dev/null +++ b/etc/logrotate.d/openrc @@ -0,0 +1,4 @@ +/var/log/rc.log { + missingok + notifempty +} diff --git a/etc/logrotate.d/rsyncd b/etc/logrotate.d/rsyncd new file mode 100644 index 0000000..ec8a982 --- /dev/null +++ b/etc/logrotate.d/rsyncd @@ -0,0 +1,9 @@ +/var/log/rsync.log { + compress + maxage 365 + rotate 7 + size 1024k + notifempty + missingok + copytruncate +} diff --git a/etc/logrotate.d/syslog-ng b/etc/logrotate.d/syslog-ng new file mode 100644 index 0000000..8bf2f39 --- /dev/null +++ b/etc/logrotate.d/syslog-ng @@ -0,0 +1,83 @@ +# +# Syslog-ng logrotate snippet for Hardened Gentoo Linux +# contributed by Maciej Grela +# +# Updated bug #284669 + +# Generic +/var/log/debug /var/log/syslog /var/log/kern.log { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# System services +/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# User log +/var/log/user.log { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# News system +/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Mail system +/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Hardened logs +/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log { + delaycompress + sharedscripts + missingok + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# Authentication +/var/log/auth.log { + delaycompress + sharedscripts + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} + +# the rest +/var/log/messages { + delaycompress + sharedscripts + postrotate + /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true + endscript +} |