[packages/net-snmp/AC-branch] logrotate: delay compress

glen glen at pld-linux.org
Mon May 30 10:56:49 CEST 2016


commit 0e8ecf61679cc8edbd0a092875f668b9d30f0fa6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon May 30 11:54:52 2016 +0300

    logrotate: delay compress
    
    error: Compressing program wrote following message to stderr when compressing log /var/log/archive/snmpd.log-20160522:
    gzip: stdin: file size changed while zipping

 net-snmp.spec   | 2 +-
 snmpd.logrotate | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/net-snmp.spec b/net-snmp.spec
index f3f9c66..0cca17d 100644
--- a/net-snmp.spec
+++ b/net-snmp.spec
@@ -32,7 +32,7 @@ Summary(ru.UTF-8):	Набор утилит для протокола SNMP от U
 Summary(uk.UTF-8):	Набір утиліт для протоколу SNMP від UC-Davis
 Name:		net-snmp
 Version:	5.4.4
-Release:	4
+Release:	5
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
diff --git a/snmpd.logrotate b/snmpd.logrotate
index baef0eb..cd304fe 100644
--- a/snmpd.logrotate
+++ b/snmpd.logrotate
@@ -1,6 +1,7 @@
 /var/log/snmpd.log
 {
 	create 640 root root
+	delaycompress
 	postrotate
 		. /etc/sysconfig/snmpd
 		if [ "${LOG_WARNINGS_MESSAGES_TO_SYSLOG:-yes}" = "no" ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/net-snmp.git/commitdiff/0e8ecf61679cc8edbd0a092875f668b9d30f0fa6



More information about the pld-cvs-commit mailing list