introduce /etc/sysconfig/snmpd. Use it to specify snmpd command line
options. /etc/snmp/snmpd.options is not used anymore Resolves: #431391
This commit is contained in:
parent
56fb3a58a6
commit
78c775e3c7
@ -7,7 +7,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries
|
Summary: A collection of SNMP protocol tools and libraries
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: %{major_ver}
|
Version: %{major_ver}
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
License: BSD and CMU
|
License: BSD and CMU
|
||||||
@ -22,6 +22,7 @@ Source5: ucd5820stat
|
|||||||
Source6: net-snmp-config.h
|
Source6: net-snmp-config.h
|
||||||
Source7: net-snmp-config
|
Source7: net-snmp-config
|
||||||
Source8: net-snmp-trapd.redhat.conf
|
Source8: net-snmp-trapd.redhat.conf
|
||||||
|
Source9: net-snmpd.sysconfig
|
||||||
Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch
|
Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch
|
||||||
Patch2: net-snmp-5.0.8-ipv6-sock-close.patch
|
Patch2: net-snmp-5.0.8-ipv6-sock-close.patch
|
||||||
Patch3: net-snmp-5.0.8-readonly.patch
|
Patch3: net-snmp-5.0.8-readonly.patch
|
||||||
@ -252,6 +253,9 @@ install -d ${RPM_BUILD_ROOT}%{_initrddir}
|
|||||||
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd
|
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/snmpd
|
||||||
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}%{_initrddir}/snmptrapd
|
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}%{_initrddir}/snmptrapd
|
||||||
|
|
||||||
|
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||||
|
install -m 644 %SOURCE9 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/snmpd
|
||||||
|
|
||||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||||
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/snmpd
|
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/snmpd
|
||||||
|
|
||||||
@ -331,6 +335,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_initrddir}/snmpd
|
%{_initrddir}/snmpd
|
||||||
%{_initrddir}/snmptrapd
|
%{_initrddir}/snmptrapd
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd
|
%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd
|
||||||
|
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/snmpd
|
||||||
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf
|
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf
|
||||||
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf
|
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf
|
||||||
%{_datadir}/snmp
|
%{_datadir}/snmp
|
||||||
@ -379,6 +384,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 12 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-9
|
||||||
|
- introduce /etc/sysconfig/snmpd. Use it to specify snmpd command line options.
|
||||||
|
/etc/snmp/snmpd.options is not used anymore (#431391)
|
||||||
|
|
||||||
* Mon Jan 28 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-8
|
* Mon Jan 28 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-8
|
||||||
- init scripts made LSB compliant
|
- init scripts made LSB compliant
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@
|
|||||||
# source function library
|
# source function library
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
if [ -e /etc/snmp/snmpd.options ]; then
|
|
||||||
. /etc/snmp/snmpd.options
|
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
|
||||||
else
|
if [ -e /etc/sysconfig/snmpd ]; then
|
||||||
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
|
. /etc/sysconfig/snmpd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
2
net-snmpd.sysconfig
Normal file
2
net-snmpd.sysconfig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# snmpd command line options
|
||||||
|
# OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
|
Loading…
Reference in New Issue
Block a user