4
# Required-Start: $remote_fs $syslog
5
# Required-Stop: $remote_fs $syslog
6
# Default-Start: 2 3 4 5
8
# Short-Description: Start/Stop Compaq Array monitor
11
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
13
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
14
# Modified for cpqarrayd by Matt Taggart <taggart@debian.org>.
17
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
18
DAEMON=/usr/sbin/cpqarrayd
22
test -x $DAEMON || exit 0
24
# Include cpqarrayd defaults if available
25
if [ -f /etc/default/cpqarrayd ] ; then
26
. /etc/default/cpqarrayd
33
echo -n "Starting $DESC: "
34
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
35
--exec $DAEMON -- $DAEMON_OPTS || if [ $? = 2 ]; \
36
then echo -n "Not starting ";fi
40
echo -n "Stopping $DESC: "
41
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
42
--exec $DAEMON || if [ $? = 2 ]; \
43
then echo -n "Not stopping ";fi
48
# If the "reload" option is implemented, move the "force-reload"
49
# option to the "reload" entry above. If not, "force-reload" is
50
# just the same as "restart".
52
echo -n "Restarting $DESC: "
53
start-stop-daemon --stop --quiet --pidfile \
54
/var/run/$NAME.pid --exec $DAEMON || if [ $? = 2 ]; \
55
then echo -n "Not stopping ";fi
57
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
58
--exec $DAEMON -- $DAEMON_OPTS || if [ $? = 2 ]; \
59
then echo -n "Not starting ";fi
64
echo "Usage: $N {start|stop|restart|force-reload}" >&2