From 45bcf953baab0b62a140db7c52903f0a9ac94706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Vok=C3=A1l?= Date: Fri, 15 Oct 2004 09:12:32 +0000 Subject: [PATCH] - logrotate support fixed --- net-snmp.spec | 5 ++++- net-snmpd.logrotate | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/net-snmp.spec b/net-snmp.spec index 61bf9b6..f7564b0 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -3,7 +3,7 @@ Summary: A collection of SNMP protocol tools and libraries. Name: net-snmp Version: 5.1.2 -Release: 10 +Release: 11 License: BSDish Group: System Environment/Daemons Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz @@ -334,6 +334,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.la %changelog +* Fri Oct 15 2004 Radek Vokal 5.1.2-11 +- Logrotate support added (#125004) + * Thu Oct 14 2004 Phil Knirsch 5.1.2-10 - Extended the libwrap and bsdcompat patches diff --git a/net-snmpd.logrotate b/net-snmpd.logrotate index 19a2993..0244e02 100644 --- a/net-snmpd.logrotate +++ b/net-snmpd.logrotate @@ -1,4 +1,7 @@ /var/log/snmpd.log { notifempty missingok + postrotate + /sbin/service snmpd condrestart 2> /dev/null > /dev/null || true + endscript }