From a2d2f9d9e8a34c1384669431fb2c7bf1350521c0 Mon Sep 17 00:00:00 2001 From: alakatos Date: Thu, 4 Jan 2024 13:03:18 +0100 Subject: [PATCH] Move rsyslog related logrotate config to the base package In the past, the logrotate script was part of the base package, but it has been moved to a separate package to reduce base package dependencies. It turned out to be a bad idea, because in some cases the logrotate subpackage was not installed and the logrotate config was missing. This turned off rotation of important logs, thus some logs could grow into extremely large files . --- rsyslog.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rsyslog.spec b/rsyslog.spec index a3cf88b..8bd55da 100644 --- a/rsyslog.spec +++ b/rsyslog.spec @@ -37,7 +37,7 @@ Summary: Enhanced system logging and kernel message trapping daemon Name: rsyslog Version: 8.2310.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-3.0-or-later AND Apache-2.0 URL: http://www.rsyslog.com/ Source0: http://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz @@ -247,7 +247,10 @@ advanced features suitable for enterprise-class, encryption-protected syslog relay chains. %description logrotate -This subpackage contains the default logrotate configuration for rsyslog. +The rsyslog-logrotate subpackage acts as a dependency puller, ensuring the +presence of logrotate, a crucial tool for managing log files. Logrotate allows +for the periodic rotation, compression, and removal of log files to prevent +them from consuming excessive disk space. %description crypto This package contains a module providing log file encryption and a @@ -604,6 +607,7 @@ done %{_unitdir}/rsyslog.service %config(noreplace) %{_sysconfdir}/rsyslog.conf %config(noreplace) %{_sysconfdir}/sysconfig/rsyslog +%config(noreplace) %{_sysconfdir}/logrotate.d/rsyslog # plugins %{_libdir}/rsyslog/fmhash.so %{_libdir}/rsyslog/fmhttp.so @@ -648,9 +652,6 @@ done %{_libdir}/rsyslog/omclickhouse.so %endif -%files logrotate -%config(noreplace) %{_sysconfdir}/logrotate.d/rsyslog - %files crypto %{_bindir}/rscryutil %{_mandir}/man1/rscryutil.1.gz @@ -766,6 +767,10 @@ done %changelog +* Thu Jan 04 2024 Attila Lakatos - 8.2310.0-2 +- Move rsyslog related logrotate config to the base package + resolves: rhbz#2242243 + * Fri Aug 25 2023 Attila Lakatos - 8.2310.0-1 - Rebase to 8.2310.0 resolves: rhbz#2232275