summaryrefslogtreecommitdiff
path: root/factory-default
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2016-09-19 00:51:23 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2016-09-19 00:51:23 +0100
commit39f8552dc24aab38881ce41931c17820381d3fad (patch)
treecf7e9911bc8ee4339ec5ee7f81ed709e24054145 /factory-default
parentRevert "eclass/linux-build: Move to EAPI 6" (diff)
downloadportage-39f8552dc24aab38881ce41931c17820381d3fad.tar.xz
factory-default/app-admin/logrotate: Add default logrotate.conf
Diffstat (limited to 'factory-default')
-rw-r--r--factory-default/app-admin/logrotate/etc/logrotate.conf47
1 files changed, 47 insertions, 0 deletions
diff --git a/factory-default/app-admin/logrotate/etc/logrotate.conf b/factory-default/app-admin/logrotate/etc/logrotate.conf
new file mode 100644
index 00000000..ee1210d3
--- /dev/null
+++ b/factory-default/app-admin/logrotate/etc/logrotate.conf
@@ -0,0 +1,47 @@
+# Log files are rotated every day
+daily
+
+# Log files are rotated 31 times before being removed
+rotate 31
+
+# Immediately after rotation the log file is created
+create
+
+# Archive old versions of log files adding a date extension
+dateext
+
+# Use yesterday's instead of today's date
+dateyesterday
+
+# If the log file is missing, go on to the next one
+missingok
+
+# Old versions of log files are compressed
+compress
+
+# Logs are moved into directory for rotation
+olddir archives
+
+# Create directory specified by olddir
+createolddir
+
+# Do not rotate the log if it is empty
+notifempty
+
+# no packages own wtmp and btmp -- we'll rotate them here.
+/var/log/wtmp {
+ monthly
+ create 0664 root utmp
+ minsize 1M
+ rotate 1
+}
+
+/var/log/btmp {
+ missingok
+ monthly
+ create 0600 root utmp
+ rotate 1
+}
+
+# Reads the file given as an argument
+include /etc/logrotate.d