3 # cpqarrayd Start/Stop Compaq Array monitor
6 # description: The cpqarrayd monitors the status of Compaq Raid Arrays, \
7 # and reports via syslog or traps
8 # processname: cpqarrayd
10 # Source function library
11 . /etc/rc.d/init.d/functions
16 if [ -f /etc/sysconfig/cpqarrayd ]; then
17 . /etc/sysconfig/cpqarrayd
21 # See how we were called.
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/cpqarrayd ]; then
26 msg_starting cpqarrayd
27 for host in $TRAP_DESTINATIONS; do
28 CPQ_PARAMS="$CPQ_PARAMS -t $host"
30 daemon cpqarrayd $CPQ_PARAMS
32 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpqarrayd
34 msg_already_running cpqarrayd
38 if [ -f /var/lock/subsys/cpqarrayd ]; then
40 msg_stopping cpqarrayd
42 rm -f /var/lock/subsys/cpqarrayd
44 msg_not_running cpqarrayd
47 restart|reload|force-reload)
57 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"