summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-filter/rspamd/files/rspamd.logrotate')
-rw-r--r--mail-filter/rspamd/files/rspamd.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail-filter/rspamd/files/rspamd.logrotate b/mail-filter/rspamd/files/rspamd.logrotate
new file mode 100644
index 00000000000..dca9cfadf66
--- /dev/null
+++ b/mail-filter/rspamd/files/rspamd.logrotate
@@ -0,0 +1,12 @@
+/var/log/rspamd/rspamd.log{
+ daily
+ rotate 4
+ delaycompress
+ compress
+ notifempty
+ missingok
+ postrotate
+ service rspamd reopenlog >/dev/null 2>&1 || true
+ endscript
+}
+