From 2958e580d85c690f2dd5a8def4ce9502c9d6da84 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Feb 2023 12:27:44 +0000 Subject: [Minor] Furhter fixes for the rpm build --- rpm/80-rspamd.preset | 1 + rpm/rspamd.logrotate | 11 +++++++++++ rpm/sources/80-rspamd.preset | 1 - rpm/sources/rspamd.logrotate | 11 ----------- 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 rpm/80-rspamd.preset create mode 100644 rpm/rspamd.logrotate delete mode 100644 rpm/sources/80-rspamd.preset delete mode 100644 rpm/sources/rspamd.logrotate diff --git a/rpm/80-rspamd.preset b/rpm/80-rspamd.preset new file mode 100644 index 000000000..0fcf15985 --- /dev/null +++ b/rpm/80-rspamd.preset @@ -0,0 +1 @@ +enable rspamd.service diff --git a/rpm/rspamd.logrotate b/rpm/rspamd.logrotate new file mode 100644 index 000000000..ea1b02d7c --- /dev/null +++ b/rpm/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 +} diff --git a/rpm/sources/80-rspamd.preset b/rpm/sources/80-rspamd.preset deleted file mode 100644 index 0fcf15985..000000000 --- a/rpm/sources/80-rspamd.preset +++ /dev/null @@ -1 +0,0 @@ -enable rspamd.service diff --git a/rpm/sources/rspamd.logrotate b/rpm/sources/rspamd.logrotate deleted file mode 100644 index ea1b02d7c..000000000 --- a/rpm/sources/rspamd.logrotate +++ /dev/null @@ -1,11 +0,0 @@ -/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 -} -- cgit v1.2.3