summaryrefslogtreecommitdiffstats
path: root/debian/rspamd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rspamd.logrotate')
-rw-r--r--debian/rspamd.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/rspamd.logrotate b/debian/rspamd.logrotate
new file mode 100644
index 0000000..18253bd
--- /dev/null
+++ b/debian/rspamd.logrotate
@@ -0,0 +1,12 @@
+/var/log/rspamd/rspamd.log {
+ daily
+ rotate 4
+ delaycompress
+ compress
+ notifempty
+ missingok
+ postrotate
+ systemctl kill --signal=SIGUSR1 rspamd >/dev/null 2>&1 \
+ || service rspamd reopenlog >/dev/null 2>&1 || true
+ endscript
+}