aboutsummaryrefslogtreecommitdiffstats
path: root/main/dovecot/dovecot.logrotate
diff options
context:
space:
mode:
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
+}
+