SOURCES: net-snmpd.init, net-snmpd.sysconfig - add bind address co...

glen glen at pld-linux.org
Wed Feb 20 19:51:33 CET 2008


Author: glen                         Date: Wed Feb 20 18:51:33 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add bind address configuration support

---- Files affected:
SOURCES:
   net-snmpd.init (1.15 -> 1.16) , net-snmpd.sysconfig (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/net-snmpd.init
diff -u SOURCES/net-snmpd.init:1.15 SOURCES/net-snmpd.init:1.16
--- SOURCES/net-snmpd.init:1.15	Wed Nov 14 11:59:51 2007
+++ SOURCES/net-snmpd.init	Wed Feb 20 19:51:28 2008
@@ -23,6 +23,7 @@
 
 CONF_FILE=""
 LOG_WARNINGS_MESSAGES_TO_SYSLOG="yes"
+SNMPD_LISTEN_ADDRS=""
 
 # Get service config
 [ -f /etc/sysconfig/snmpd ] && . /etc/sysconfig/snmpd
@@ -44,7 +45,7 @@
 		daemon /usr/bin/setsid /usr/sbin/snmpd \
 			$([ -n "$CONF_FILE" ] && echo "-C -c $CONF_FILE") \
 			$(is_yes "$LOG_WARNINGS_MESSAGES_TO_SYSLOG" && echo "-Lsd" ) \
-		   	-p /var/run/snmpd.pid </dev/null
+		   	-p /var/run/snmpd.pid $SNMPD_LISTEN_ADDRS </dev/null
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd
 	else

================================================================
Index: SOURCES/net-snmpd.sysconfig
diff -u SOURCES/net-snmpd.sysconfig:1.2 SOURCES/net-snmpd.sysconfig:1.3
--- SOURCES/net-snmpd.sysconfig:1.2	Fri Apr 29 17:09:36 2005
+++ SOURCES/net-snmpd.sysconfig	Wed Feb 20 19:51:28 2008
@@ -10,3 +10,6 @@
 
 # Log warnings/messages to syslog (otherwise to /var/log/snmpd.log)
 LOG_WARNINGS_MESSAGES_TO_SYSLOG=yes
+
+# Addresses snmpd should listen too. See snmpd(8)
+#SNMPD_LISTEN_ADDRS="udp:127.0.0.1"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/net-snmpd.init?r1=1.15&r2=1.16&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/net-snmpd.sysconfig?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list