]> git.pld-linux.org Git - packages/cpqarrayd.git/commitdiff
- add trap destinations param
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Mar 2006 12:20:50 +0000 (12:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpqarrayd.init -> 1.3
    cpqarrayd.sysconfig -> 1.3

cpqarrayd.init
cpqarrayd.sysconfig

index b53508fa779ada46ee4c84f791c1507a3b626260..c66a4fc76e906144d26ad33fa46ff952a1b317d9 100644 (file)
 # Source function library
 . /etc/rc.d/init.d/functions
 
 # 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
 # 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
 # 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
                daemon cpqarrayd $CPQ_PARAMS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpqarrayd
index 3aac6dd6d6ca39ebec12d4b787697825d5339bd4..ddf09bc410f6c79f2dcb67bdb3a722f633ee8de3 100644 (file)
@@ -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=""
 #CPQ_PARAMS=""
This page took 0.106163 seconds and 4 git commands to generate.