SOURCES: net-snmpd.init - -p PIDFILE should be there even if no $C...
glen
glen at pld-linux.org
Wed Nov 14 11:59:56 CET 2007
Author: glen Date: Wed Nov 14 10:59:56 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- -p PIDFILE should be there even if no $CONF_FILE is setup
---- Files affected:
SOURCES:
net-snmpd.init (1.14 -> 1.15)
---- Diffs:
================================================================
Index: SOURCES/net-snmpd.init
diff -u SOURCES/net-snmpd.init:1.14 SOURCES/net-snmpd.init:1.15
--- SOURCES/net-snmpd.init:1.14 Wed Nov 14 11:58:52 2007
+++ SOURCES/net-snmpd.init Wed Nov 14 11:59:51 2007
@@ -42,9 +42,9 @@
if [ ! -f /var/lock/subsys/snmpd ]; then
msg_starting "snmpd"
daemon /usr/bin/setsid /usr/sbin/snmpd \
- $([ -n "$CONF_FILE" ] && echo "-C -c $CONF_FILE -p /var/run/snmpd.pid") \
- $( is_yes "$LOG_WARNINGS_MESSAGES_TO_SYSLOG" && \
- echo "-Lsd" ) </dev/null
+ $([ -n "$CONF_FILE" ] && echo "-C -c $CONF_FILE") \
+ $(is_yes "$LOG_WARNINGS_MESSAGES_TO_SYSLOG" && echo "-Lsd" ) \
+ -p /var/run/snmpd.pid </dev/null
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/net-snmpd.init?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list