summaryrefslogtreecommitdiffstats
path: root/debian/rspamd.logrotate
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 21:30:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 21:30:41 +0000
commit8d4fd7bdf10268afed8a998b72c7065b280560a1 (patch)
tree87eb17774906ce58cec372004647554132fdbf45 /debian/rspamd.logrotate
parentAdding upstream version 3.8.1. (diff)
downloadrspamd-8d4fd7bdf10268afed8a998b72c7065b280560a1.tar.xz
rspamd-8d4fd7bdf10268afed8a998b72c7065b280560a1.zip
Adding debian version 3.8.1-1.debian/3.8.1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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
+}