From 689d64cdc3736bb3e965f5b0181b1db77c7d3240 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jul 2009 17:58:10 +0000 Subject: main/logrotate: install cron script in /etc/periodic/daily fixes #83 also create a working default config --- main/logrotate/logrotate.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 main/logrotate/logrotate.conf (limited to 'main/logrotate/logrotate.conf') diff --git a/main/logrotate/logrotate.conf b/main/logrotate/logrotate.conf new file mode 100644 index 000000000..125268ae8 --- /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. -- cgit v1.2.3