maybe chmod 0644 'logrotate.d/rsyncd'
maybe chmod 0644 'logrotate.d/rsyslog'
maybe chmod 0644 'logrotate.d/salt'
-maybe chmod 0644 'logrotate.d/syslog-ng'
maybe chmod 0644 'lsb-release'
maybe chmod 0755 'lvm'
maybe chmod 0700 'lvm/archive'
# endscript
#}
-/var/log/auth.log
-/var/log/cron.log
-/var/log/daemon.log
-/var/log/kern.log
-/var/log/lpr.log
-/var/log/mail.log
-/var/log/news.log
-/var/log/user.log
-/var/log/debug.log
-/var/log/messages
-{
- rotate 4
- weekly
- missingok
- notifempty
- compress
- delaycompress
+#/var/log/auth.log
+#/var/log/cron.log
+#/var/log/daemon.log
+#/var/log/kern.log
+#/var/log/lpr.log
+#/var/log/mail.log
+#/var/log/news.log
+#/var/log/user.log
+#/var/log/debug.log
+#/var/log/messages
+#{
+# rotate 4
+# weekly
+# missingok
+# notifempty
+# compress
+# delaycompress
+# sharedscripts
+# postrotate
+# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
+# endscript
+#}
+
+/var/log/messages /var/log/syslog {
+ daily
+ missingok
+ olddir /var/log/.old
+ size 1024K
+ sharedscripts
+ postrotate
+ test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
+ endscript
+}
+
+/var/log/syslog.d/*.log {
+ daily
+ missingok
+ olddir /var/log/syslog.d/.old
+ size 1024K
+ maxage 1y
+ sharedscripts
+ postrotate
+ test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
+ endscript
+}
+
+/var/log/debug.log /var/log/debug /var/log/all /var/log/all.log {
+ daily
+ missingok
+ olddir /var/log/.old
+ size 4M
+ maxage 6m
sharedscripts
postrotate
test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
endscript
}
+
+
+++ /dev/null
-# $Id$
-#
-# Syslog-ng logrotate snippet for Gentoo Linux
-# contributed by Michael Sterrett
-#
-
-/var/log/messages {
- weekly
- missingok
- olddir /var/log/.old
- size +1M
- sharedscripts
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}