]> git.pld-linux.org Git - packages/cpqarrayd.git/commitdiff
- cp from cpqarrayd-2.2/scripts
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Mar 2006 11:17:13 +0000 (11:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpqarrayd.init -> 1.1
    cpqarrayd.sysconfig -> 1.1

cpqarrayd.init [new file with mode: 0644]
cpqarrayd.sysconfig [new file with mode: 0644]

diff --git a/cpqarrayd.init b/cpqarrayd.init
new file mode 100644 (file)
index 0000000..5b63b81
--- /dev/null
@@ -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 (file)
index 0000000..d806523
--- /dev/null
@@ -0,0 +1,2 @@
+# specify startup options here
+CPQ_PARAMS=""
This page took 0.065782 seconds and 4 git commands to generate.