5_1_2-4'.
Sprout from master 2004-12-09 19:55:29 UTC Elan Ruusamäe <glen@pld-linux.org> '- disable echotest per default'
Cherrypick from master 2005-06-15 21:18:40 UTC Elan Ruusamäe <glen@pld-linux.org> '- having signal as last argument to killproc seems to work a lot better':
net-snmpd.init -> 1.11
net-snmpd.sysconfig -> 1.2
Cherrypick from unlabeled-1.40.2 2005-06-17 16:30:00 UTC Jan Rękorajski <baggins@pld-linux.org> '- release 4 to rebuild with rpm 4.4.1':
net-snmp.spec -> 1.40.2.4
Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
Name: net-snmp
Version: 5.1.2
-Release: 1
+Release: 4
License: BSD-like
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
PATH=`pwd`:$PATH \
%{__perl} Makefile.PL \
+ -NET-SNMP-CONFIG="sh ../../net-snmp-config" -NET-SNMP-IN-SOURCE=true \
INSTALLDIRS=vendor \
OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
</dev/null
# Get network config
. /etc/sysconfig/network
-CONF_FILE=/etc/snmp/snmpd.conf
-LOG_WARNINGS_MESSAGES_TO_SYSLOG=yes
+CONF_FILE=""
+LOG_WARNINGS_MESSAGES_TO_SYSLOG="yes"
# Get service config
[ -f /etc/sysconfig/snmpd ] && . /etc/sysconfig/snmpd
rm -f /var/lock/subsys/snmpd >/dev/null 2>&1
else
msg_not_running "snmpd"
- fi
+ fi
+ ;;
+ reload)
+ if [ -f /var/lock/subsys/snmpd ]; then
+ msg_reloading "snmpd"
+ killproc snmpd -HUP
+ else
+ msg_not_running "snmpd"
+ fi
;;
restart|force-reload)
$0 stop
# Define nice level for snmpd
SERVICE_RUN_NICE_LEVEL="+0"
-# Default configuration file name
-CONF_FILE=/etc/snmp/snmpd.conf
+# Default configuration file name.
+# IMPORTANT:
+# If you enable this, snmpd will not read additionally /etc/snmp/snmpd.local.conf
+# CONF_FILE=/etc/snmp/snmpd.conf
# Log warnings/messages to syslog (otherwise to /var/log/snmpd.log)
LOG_WARNINGS_MESSAGES_TO_SYSLOG=yes