summaryrefslogtreecommitdiffstats
path: root/rpm/sources/rspamd.logrotate
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-02-08 12:22:57 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-02-08 12:22:57 +0000
commit553041053ed6e524f477151a308f3163f83f3c3b (patch)
treecb515f2a1330873741da5d74914e2517d2d57fed /rpm/sources/rspamd.logrotate
parent2207724a6c94a36fe597fc8ec7e0f197b90c3ec0 (diff)
downloadrspamd-553041053ed6e524f477151a308f3163f83f3c3b.tar.gz
rspamd-553041053ed6e524f477151a308f3163f83f3c3b.zip
[Minor] Directory name is bogus
Diffstat (limited to 'rpm/sources/rspamd.logrotate')
-rw-r--r--rpm/sources/rspamd.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/rpm/sources/rspamd.logrotate b/rpm/sources/rspamd.logrotate
new file mode 100644
index 000000000..ea1b02d7c
--- /dev/null
+++ b/rpm/sources/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
+}