@@ -47,8 +47,10 @@ Requires(post): chkconfig | |||
Requires(preun): chkconfig, initscripts | |||
Requires(postun): initscripts | |||
Source1: %{name}.init | |||
%endif | |||
Source2: %{name}.logrotate | |||
%else | |||
Source2: %{name}.logrotate.systemd | |||
%endif | |||
Source0: https://rspamd.com/downloads/%{name}-%{version}.tar.xz | |||
Source3: 80-rspamd.preset |
@@ -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 | |||
} |