summaryrefslogtreecommitdiff
path: root/rspamd/rspamd.logrotate
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 23:29:24 +0200
committerDeposite Pirate2018-09-16 23:29:24 +0200
commit569e598d38adb1918d127ee31af1cd332b072dcf (patch)
tree23a7204866591100db57f3acac53cd410ea8d3e4 /rspamd/rspamd.logrotate
Initial commit.HEADmaster
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
+}