summaryrefslogtreecommitdiffstats
path: root/main/logrotate/logrotate.conf
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-24 17:58:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-24 18:07:05 +0000
commit689d64cdc3736bb3e965f5b0181b1db77c7d3240 (patch)
treec67d91be54b3f9be5a70ab5223681edb66334de1 /main/logrotate/logrotate.conf
parent1b9e680cbcfb76b84ef02c9f552c850d0ef856c7 (diff)
downloadaports-689d64cdc3736bb3e965f5b0181b1db77c7d3240.tar.bz2
aports-689d64cdc3736bb3e965f5b0181b1db77c7d3240.tar.xz
main/logrotate: install cron script in /etc/periodic/daily
fixes #83 also create a working default config
Diffstat (limited to 'main/logrotate/logrotate.conf')
-rw-r--r--main/logrotate/logrotate.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/logrotate/logrotate.conf b/main/logrotate/logrotate.conf
new file mode 100644
index 00000000..125268ae
--- /dev/null
+++ b/main/logrotate/logrotate.conf
@@ -0,0 +1,20 @@
+# see "man logrotate" for details
+# rotate log files weekly
+weekly
+
+# 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
+
+# apk packages drop log rotation information into this directory
+include /etc/logrotate.d
+
+# system-specific logs may be also be configured here.