summaryrefslogtreecommitdiffstats
path: root/centos/sources
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-17 10:17:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-17 10:17:56 +0100
commit3eda5a9aa5541daa3ae90e1f4055888bdf342500 (patch)
tree466ad62fbe7dcd3d4dfbf00499c3e0235fd16542 /centos/sources
parent25c596a3dafbb682bc07466732da9ce524f4dce9 (diff)
downloadrspamd-3eda5a9aa5541daa3ae90e1f4055888bdf342500.tar.gz
rspamd-3eda5a9aa5541daa3ae90e1f4055888bdf342500.zip
[Fix] Fix CentOS logrotate script for systemd
Diffstat (limited to 'centos/sources')
-rw-r--r--centos/sources/rspamd.logrotate.systemd11
1 files changed, 11 insertions, 0 deletions
diff --git a/centos/sources/rspamd.logrotate.systemd b/centos/sources/rspamd.logrotate.systemd
new file mode 100644
index 000000000..f6536d058
--- /dev/null
+++ b/centos/sources/rspamd.logrotate.systemd
@@ -0,0 +1,11 @@
+/var/log/rspamd/*log {
+ daily
+ rotate 10
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ export `systemctl -p MainPID show rspamd.service`; if [ -n "$MainPID" ]; then kill -USR1 $MainPID; fi
+ endscript
+} \ No newline at end of file