#! /bin/sh
-/usr/sbin/logrotate /etc/logrotate.conf
+#/usr/sbin/logrotate /etc/logrotate.conf
+if [ -x /usr/scripts/logrotate.pl ] ; then
+ /usr/scripts/logrotate.pl -v >>/var/log/logrotate.log
+fi
+
#daily
# keep 4 weeks worth of backlogs
-rotate 4
+#rotate 4
+rotate 10
+maxage 2y
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
+tabooprefix \.
+
# uncomment this if you want your log files compressed
compress
-# packages can drop log rotation information into this directory
-include /etc/logrotate.d
-
notifempty
-nomail
+#nomail
noolddir
+# is it okay, if a logfile doesn't exists ?
+missingok
+
+# packages can drop log rotation information into this directory
+include /etc/logrotate.d
+
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
- rotate 1
+ size=4096K
+ rotate 12
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
- rotate 1
+ rotate 12
}
# system-specific logs may be also be configured here.
# Apache2 logrotate snipet for Gentoo Linux
# Contributes by Chuck Short
#
+#/var/log/apache2/*log {
+# missingok
+# notifempty
+# sharedscripts
+# postrotate
+# /etc/init.d/apache2 reload > /dev/null 2>&1 || true
+# endscript
+#}
+
+script apache2-reload
+ /etc/init.d/apache2 reload >/dev/null || true
+endscript
+
+#rotate 10
+daily
+
/var/log/apache2/*log {
- missingok
- notifempty
- sharedscripts
- postrotate
- /etc/init.d/apache2 reload > /dev/null 2>&1 || true
- endscript
+ size 4m
+ olddir /var/log/apache2/%Y-%m
+ postrotate apache2-reload
}
+
+
+# vim: ts=4 filetype=conf
/bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2> /dev/null` 2>/dev/null || true
endscript
}
+
+# vim: ts=4 filetype=conf
# Rotate the log created by the save_summary elog module.
/var/log/portage/elog/summary.log {
- su portage portage
+ # su portage portage
missingok
nocreate
delaycompress
}
+
+# vim: ts=4 filetype=conf
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/logrotate.mysql,v 1.2 2011/01/13 20:06:06 robbat2 Exp $
/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err {
-monthly
-create 660 mysql mysql
-notifempty
-size 5M
-sharedscripts
-missingok
-postrotate
-[ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid`
-endscript
+ monthly
+ create 660 mysql mysql
+ notifempty
+ size 5M
+ sharedscripts
+ missingok
+ postrotate
+ [ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid`
+ endscript
}
+
+# vim: ts=4 filetype=conf
missingok
notifempty
}
+
+# vim: ts=4 filetype=conf
missingok
copytruncate
}
+
+# vim: ts=4 filetype=conf
# contributed by Michael Sterrett
#
+#/var/log/messages {
+# missingok
+# sharedscripts
+# postrotate
+# /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
+# endscript
+#}
+
+script syslog-reload
+ /etc/init.d/syslog-ng reload >/dev/null || true
+endscript
+
/var/log/messages {
- missingok
- sharedscripts
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
+ daily
+ olddir /var/log/.old/%Y-%m
+ size 1024K
+ postrotate syslog-reload
+}
+
+/var/log/syslog.d/* {
+ daily
+ olddir /var/log/syslog.d/.old/%Y-%m
+ size 1024K
+ postrotate syslog-reload
+ maxage 1y
+}
+
+/var/log/debug.log {
+ daily
+ olddir /var/log/.old/%Y-%m
+ size 4M
+ postrotate syslog-reload
+ maxage 6m
}
+
+/var/log/mail/authdaemond /var/log/mail/amavis* /var/log/mail/imapd* /var/log/mail/pop3d* /var/log/mail/postgrey /var/log/mail/spam* {
+ daily
+ olddir /var/log/mail/.old/%Y-%m
+ size 1024K
+ postrotate syslog-reload
+ maxage 1y
+}
+
+/var/log/mail/postfix/* {
+ daily
+ olddir /var/log/mail/.old/postfix/%Y-%m
+ size 1024K
+ postrotate syslog-reload
+ maxage 1y
+}
+
+# vim: ts=4 filetype=conf
\___/|_| |_|\__,_| |_|
-Liebe ist die Anziehungskraft des Geistes, wie die Schwerkraft die
-Anziehungskraft der Körper ist.
- -- Valerie Marie Breton
+Hey, sonst denkt ihr auch immer, Joey wäre eine multiple
+Persönlichkeit. Dann zählt die gefälligst auch so.
+ -- Martin Schulze
Today is Pungenday, the 28th day of Chaos in the YOLD 3178
+
+~app-admin/ulogd-2.0.0_beta4
+
~net-analyzer/tcptrace-6.6.7
+~net-libs/libnetfilter_log-1.0.1
+
~sys-apps/etckeeper-0.58