aboutsummaryrefslogtreecommitdiffstats
path: root/main/dovecot/dovecot.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-11 15:17:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-11 15:17:06 +0000
commit7380979a0bbc147af227a936b8fcfba816c2295c (patch)
tree4f8b44e3ee4e0d0ff23b66361e67577e7ea0bd22 /main/dovecot/dovecot.logrotate
parentd2534f031a20a769da681ab9c2e782b1afc8f4fc (diff)
downloadaports-7380979a0bbc147af227a936b8fcfba816c2295c.tar.gz
aports-7380979a0bbc147af227a936b8fcfba816c2295c.tar.bz2
aports-7380979a0bbc147af227a936b8fcfba816c2295c.tar.xz
main/dovecot: use logfile in default config and provide logrotate
fixes #360
Diffstat (limited to 'main/dovecot/dovecot.logrotate')
-rw-r--r--main/dovecot/dovecot.logrotate15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/dovecot/dovecot.logrotate b/main/dovecot/dovecot.logrotate
new file mode 100644
index 0000000000..7bd0003f7f
--- /dev/null
+++ b/main/dovecot/dovecot.logrotate
@@ -0,0 +1,15 @@
+/var/log/dovecot*.log {
+ daily
+ missingok
+ copytruncate
+ rotate 7
+ compress
+ notifempty
+ sharedscripts
+ postrotate
+ if /etc/init.d/dovecot -q status ; then \
+ /etc/init.d/dovecot reload > /dev/null 2>&1 || true ; \
+ fi;
+ endscript
+}
+