From e3b4c85579c05299e4936f9dfb040c2a32452a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 9 Mar 2006 11:17:13 +0000 Subject: [PATCH] - cp from cpqarrayd-2.2/scripts Changed files: cpqarrayd.init -> 1.1 cpqarrayd.sysconfig -> 1.1 --- cpqarrayd.init | 52 +++++++++++++++++++++++++++++++++++++++++++++ cpqarrayd.sysconfig | 2 ++ 2 files changed, 54 insertions(+) create mode 100644 cpqarrayd.init create mode 100644 cpqarrayd.sysconfig diff --git a/cpqarrayd.init b/cpqarrayd.init new file mode 100644 index 0000000..5b63b81 --- /dev/null +++ b/cpqarrayd.init @@ -0,0 +1,52 @@ +#! /bin/sh +# +# cpqarrayd Start/Stop Compaq Array monitor +# +# chkconfig: 345 15 90 +# description: The cpqarrayd monitors the status of Compaq Raid Arrays, \ +# and reports via syslog or traps +# processname: cpqarrayd + +# Source function library. +. /etc/rc.d/init.d/functions + +# Get config. +if [ -f /etc/sysconfig/cpqarrayd ]; then + . /etc/sysconfig/cpqarrayd +fi + +[ -f /usr/sbin/cpqarrayd ] || exit 0 + +RETVAL=0 + +# See how we were called. +case "$1" in + start) + echo -n "Starting cpqarrayd: " + daemon /usr/sbin/cpqarrayd $CPQ_PARAMS + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpqarrayd + ;; + stop) + echo -n "Stopping cpqarrayd: " + killproc cpqarrayd + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cpqarrayd + ;; + status) + status cpqarrayd + RETVAL=$? + ;; + restart|reload) + $0 stop + $0 start + RETVAL=$? + ;; + *) + echo "Usage: cpqarrayd {start|stop|status|restart|reload}" + exit 1 +esac + +exit $RETVAL diff --git a/cpqarrayd.sysconfig b/cpqarrayd.sysconfig new file mode 100644 index 0000000..d806523 --- /dev/null +++ b/cpqarrayd.sysconfig @@ -0,0 +1,2 @@ +# specify startup options here +CPQ_PARAMS="" -- 2.43.0