Changed files:
cpqarrayd.init -> 1.5
. /etc/sysconfig/cpqarrayd
fi
-RETVAL=0
-# See how we were called.
-case "$1" in
-start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/cpqarrayd ]; then
msg_starting cpqarrayd
else
msg_already_running cpqarrayd
fi
- ;;
-stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/cpqarrayd ]; then
# Stop daemons.
msg_stopping cpqarrayd
else
msg_not_running cpqarrayd
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+start)
+ start
+ ;;
+stop)
+ stop
;;
restart|force-reload)
- $0 stop
- $0 start
- RETVAL=$?
+ stop
+ start
;;
status)
status cpqarrayd