SOURCES: cpqarrayd.init, cpqarrayd.sysconfig - add trap destinatio...

glen glen at pld-linux.org
Thu Mar 9 13:20:55 CET 2006


Author: glen                         Date: Thu Mar  9 12:20:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add trap destinations param

---- Files affected:
SOURCES:
   cpqarrayd.init (1.2 -> 1.3) , cpqarrayd.sysconfig (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/cpqarrayd.init
diff -u SOURCES/cpqarrayd.init:1.2 SOURCES/cpqarrayd.init:1.3
--- SOURCES/cpqarrayd.init:1.2	Thu Mar  9 12:23:23 2006
+++ SOURCES/cpqarrayd.init	Thu Mar  9 13:20:50 2006
@@ -10,19 +10,23 @@
 # Source function library
 . /etc/rc.d/init.d/functions
 
+CPQ_PARAMS=""
+
 # Get config.
 if [ -f /etc/sysconfig/cpqarrayd ]; then
 	. /etc/sysconfig/cpqarrayd
 fi
 
 RETVAL=0
-
 # See how we were called.
 case "$1" in
 start)
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/cpqarrayd ]; then
 		msg_starting cpqarrayd
+		for host in $TRAP_DESTINATIONS; do
+			CPQ_PARAMS="$CPQ_PARAMS -t $host"
+		done
 		daemon cpqarrayd $CPQ_PARAMS
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpqarrayd

================================================================
Index: SOURCES/cpqarrayd.sysconfig
diff -u SOURCES/cpqarrayd.sysconfig:1.2 SOURCES/cpqarrayd.sysconfig:1.3
--- SOURCES/cpqarrayd.sysconfig:1.2	Thu Mar  9 12:23:23 2006
+++ SOURCES/cpqarrayd.sysconfig	Thu Mar  9 13:20:50 2006
@@ -1,4 +1,9 @@
-# Customized settings for cpqarrayd
+# Customized settings for Compaq Array monitor cpqarrayd
 
-# Specify startup options here.
+# Specify a host that should receive traps.
+# You can specify this option at max ten times.
+# The host is in the format host:port.
+#TRAP_DESTINATIONS="snmphost"
+
+# Specify additional startup options here.
 #CPQ_PARAMS=""
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/cpqarrayd.init?r1=1.2&r2=1.3&f=u
    http://cvs.pld-linux.org/SOURCES/cpqarrayd.sysconfig?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list