4 # description: Starts and stops cmirrord
6 # For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
10 # Required-Start: $network $time $local_fs
11 # Required-Stop: $network $time $local_fs
12 # Short-Description: Starts and stops cmirrord
13 # Description: Starts and stops the cluster mirror log daemon
16 . /etc/init.d/functions
20 LOCK_FILE="/var/lock/subsys/$DAEMON"
24 if ! pidof $DAEMON > /dev/null
26 echo -n "Starting $DAEMON: "
37 echo -n "Stopping $DAEMON:"
38 killproc $DAEMON -TERM
49 while [ "$count" -le 10 -a -n "`pidof $DAEMON`" ]
55 if [ `pidof $DAEMON` ]
70 # See how we were called.
75 [ $rtrn = 0 ] && touch $LOCK_FILE
81 [ $rtrn = 0 ] && rm -f $LOCK_FILE
96 if [ $rtrn -eq 0 ]; then
97 echo "cmirror is running."
102 echo $"Usage: $0 {start|stop|restart|status}"