aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslog-ng/syslog-ng.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-06 09:26:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-06 09:26:43 +0000
commitdbfbb9b88abcc2522e8e46b6db218dca09771bb2 (patch)
treef72dbc18461422ea5e05027e9faa0133b6793faf /main/syslog-ng/syslog-ng.logrotate
parentec0afeea4567c35a0eda0f664b4649b1ab006645 (diff)
downloadaports-dbfbb9b88abcc2522e8e46b6db218dca09771bb2.tar.bz2
aports-dbfbb9b88abcc2522e8e46b6db218dca09771bb2.tar.xz
main/syslog-ng: move from testing
Diffstat (limited to 'main/syslog-ng/syslog-ng.logrotate')
-rw-r--r--main/syslog-ng/syslog-ng.logrotate40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/syslog-ng/syslog-ng.logrotate b/main/syslog-ng/syslog-ng.logrotate
new file mode 100644
index 0000000000..c3fd093418
--- /dev/null
+++ b/main/syslog-ng/syslog-ng.logrotate
@@ -0,0 +1,40 @@
+/var/log/auth.log {
+ rotate 14
+ daily
+ missingok
+ notifempty
+ compress
+ postrotate
+ /etc/init.d/syslog-ng reload >/dev/null
+ endscript
+}
+
+/var/log/mail.log /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
+ rotate 8
+ weekly
+ missingok
+ notifempty
+ compress
+}
+
+/var/log/kern.log {
+ rotate 2
+ monthly
+ missingok
+ notifempty
+ compress
+ postrotate
+ /etc/init.d/syslog-ng reload >/dev/null
+ endscript
+}
+
+/var/log/messages /var/log/error.log {
+ rotate 14
+ weekly
+ missingok
+ notifempty
+ compress
+ postrotate
+ /etc/init.d/syslog-ng reload >/dev/null
+ endscript
+}