SOURCES: protolog.init - parse $IGNORE_ADDR
glen
glen at pld-linux.org
Sun Mar 12 23:42:44 CET 2006
Author: glen Date: Sun Mar 12 22:42:44 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- parse $IGNORE_ADDR
---- Files affected:
SOURCES:
protolog.init (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SOURCES/protolog.init
diff -u SOURCES/protolog.init:1.10 SOURCES/protolog.init:1.11
--- SOURCES/protolog.init:1.10 Sun Mar 12 23:25:21 2006
+++ SOURCES/protolog.init Sun Mar 12 23:42:39 2006
@@ -12,6 +12,7 @@
PLOGTCP=""
PLOGUDP=""
PLOGICMP=""
+COMMON_ARGS=""
if [ -f /etc/sysconfig/protolog ]; then
. /etc/sysconfig/protolog
@@ -32,17 +33,20 @@
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/protolog ]; then
+ for addr in $IGNORE_ADDR; do
+ COMMON_ARGS="$COMMON_ARGS -i $addr"
+ done
msg_starting "protolog TCP daemon"
- daemon plogtcp -q $PLOGTCP
+ daemon plogtcp -q $COMMON_ARGS $PLOGTCP
RETVAL=$?
msg_starting "protolog UDP daemon"
- daemon plogudp -q $PLOGUDP
+ daemon plogudp -q $COMMON_ARGS $PLOGUDP
RET=$?
[ $RET -ge 0 ] && RETVAL=$RET
msg_starting "protolog ICMP daemon"
- daemon plogicmp -q $PLOGICMP
+ daemon plogicmp -q $COMMON_ARGS $PLOGICMP
RET=$?
[ $RET -ge 0 ] && RETVAL=$RET
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/protolog.init?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list