From 60ffa6d2e3e055f08d403c30c80ab6fdcccc92d1 Mon Sep 17 00:00:00 2001 From: znzjugod Date: Tue, 29 Oct 2024 09:21:02 +0800 Subject: [PATCH] modify logrotate rule --- modify-logrotate-rule.patch | 27 +++++++++++++++++++++++++++ sysSentry.spec | 9 ++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 modify-logrotate-rule.patch diff --git a/modify-logrotate-rule.patch b/modify-logrotate-rule.patch new file mode 100644 index 0000000..be0ddd2 --- /dev/null +++ b/modify-logrotate-rule.patch @@ -0,0 +1,27 @@ +From 0d3323d13797f3f9d3124e3938787d2573bf249d Mon Sep 17 00:00:00 2001 +From: zhangnan +Date: Mon, 28 Oct 2024 17:32:49 +0800 +Subject: [PATCH] modify logrotate rule + +--- + config/logrotate | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/config/logrotate b/config/logrotate +index f54e7b3..e855118 100644 +--- a/config/logrotate ++++ b/config/logrotate +@@ -1,8 +1,9 @@ + /var/log/sysSentry/*.log { +- nocompress ++ compress + missingok + notifempty + copytruncate + rotate 2 + size +4096k ++ hourly + } +-- +2.33.0 + diff --git a/sysSentry.spec b/sysSentry.spec index 9926261..810c00b 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.2 -Release: 52 +Release: 53 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -72,6 +72,7 @@ Patch59: ai_block_io-support-iodump.patch Patch60: fix-get_alarm-error.patch Patch61: fix-alarm_info-newline-break-error.patch Patch62: add-hbm-online-repair.patch +Patch63: modify-logrotate-rule.patch BuildRequires: cmake gcc-c++ BuildRequires: python3 python3-setuptools @@ -365,6 +366,12 @@ rm -rf %{buildroot} %attr(0550,root,root) %{python3_sitelib}/syssentry/bmc_alarm.py %changelog +* Tue Oct 29 2024 zhangnan - 1.0.2-53 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:modify logrotate rule + * Sat Oct 26 2024 luckky - 1.0.2-52 - Type:requirement - CVE:NA -- Gitee