summaryrefslogtreecommitdiffstats
path: root/rpm/rspamd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rpm/rspamd.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/rpm/rspamd.logrotate b/rpm/rspamd.logrotate
new file mode 100644
index 0000000..ea1b02d
--- /dev/null
+++ b/rpm/rspamd.logrotate
@@ -0,0 +1,11 @@
+/var/log/rspamd/*log {
+ daily
+ rotate 10
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ systemctl --signal=USR1 --kill-who=main kill rspamd.service 2>/dev/null || :
+ endscript
+}