]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@uhu1.uhu-banane.de>
Sat, 28 Jan 2012 20:59:05 +0000 (21:59 +0100)
committerroot <root@uhu1.uhu-banane.de>
Sat, 28 Jan 2012 20:59:05 +0000 (21:59 +0100)
Package changes:
+app-admin/logrotate-3.8.1

.etckeeper
cron.daily/logrotate.cron [new file with mode: 0755]
logrotate.conf [new file with mode: 0644]
logrotate.d/.keep_app-admin_logrotate-0 [new file with mode: 0644]

index 3e60efeb5fb148115bf304bfb13acaaa7bd62fb4..0fb0aa238b46523c6331ac34902b06f08a8fcd15 100755 (executable)
@@ -273,6 +273,7 @@ maybe chmod 0755 './cron.d'
 maybe chmod 0644 './cron.d/.keep_sys-process_vixie-cron-0'
 maybe chmod 0750 './cron.daily'
 maybe chmod 0644 './cron.daily/.keep_sys-process_cronbase-0'
+maybe chmod 0755 './cron.daily/logrotate.cron'
 maybe chmod 0755 './cron.daily/makewhatis'
 maybe chmod 0755 './cron.daily/mlocate'
 maybe chmod 0755 './cron.daily/rkhunter'
@@ -620,7 +621,9 @@ maybe chmod 0644 './local.d/README'
 maybe chmod 0644 './locale.gen'
 maybe chmod 0644 './localtime'
 maybe chmod 0644 './login.defs'
+maybe chmod 0644 './logrotate.conf'
 maybe chmod 0755 './logrotate.d'
+maybe chmod 0644 './logrotate.d/.keep_app-admin_logrotate-0'
 maybe chmod 0644 './logrotate.d/apache2'
 maybe chmod 0644 './logrotate.d/clamav'
 maybe chmod 0644 './logrotate.d/elog-save-summary'
diff --git a/cron.daily/logrotate.cron b/cron.daily/logrotate.cron
new file mode 100755 (executable)
index 0000000..63cbe96
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+/usr/sbin/logrotate /etc/logrotate.conf
diff --git a/logrotate.conf b/logrotate.conf
new file mode 100644 (file)
index 0000000..25dd134
--- /dev/null
@@ -0,0 +1,44 @@
+# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v 1.3 2008/12/24 20:49:10 dang Exp $
+#
+# Logrotate default configuration file for Gentoo Linux
+#
+# See "man logrotate" for details
+
+# rotate log files weekly
+weekly
+#daily
+
+# keep 4 weeks worth of backlogs
+rotate 4
+
+# create new (empty) log files after rotating old ones
+create
+
+# use date as a suffix of the rotated file
+dateext
+
+# 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
+noolddir
+
+# no packages own lastlog or wtmp -- we'll rotate them here
+/var/log/wtmp {
+    monthly
+    create 0664 root utmp
+    rotate 1
+}
+
+/var/log/btmp {
+    missingok
+    monthly
+    create 0600 root utmp
+    rotate 1
+}
+
+# system-specific logs may be also be configured here.
diff --git a/logrotate.d/.keep_app-admin_logrotate-0 b/logrotate.d/.keep_app-admin_logrotate-0
new file mode 100644 (file)
index 0000000..e69de29