summaryrefslogtreecommitdiff
path: root/rspamd/rspamd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'rspamd/rspamd.logrotate')
-rw-r--r--rspamd/rspamd.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/rspamd/rspamd.logrotate b/rspamd/rspamd.logrotate
new file mode 100644
index 0000000..3a155f8
--- /dev/null
+++ b/rspamd/rspamd.logrotate
@@ -0,0 +1,11 @@
+/var/log/rspamd/*log {
+ daily
+ rotate 10
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ [ ! -f /run/rspamd.pid ] || kill -USR1 `cat /run/rspamd.pid`
+ endscript
+}