4 # /etc/rc.d/init.d/multipathd
6 # Starts the multipath daemon
9 # description: Manage device-mapper multipath devices
10 # processname: multipathd
12 DAEMON=/sbin/multipathd
13 prog=`basename $DAEMON`
14 initdir=/etc/rc.d/init.d
15 lockdir=/var/lock/subsys
16 sysconfig=/etc/sysconfig
21 if [ $system = redhat ]; then
22 # Source function library.
26 test -x $DAEMON || exit 0
27 test -r $sysconfig/$prog && . $sysconfig/$prog
32 # See how we were called.
36 echo -n $"Starting $prog daemon: "
39 [ $RETVAL -eq 0 ] && touch $lockdir/$prog
44 echo -n $"Stopping $prog daemon: "
47 [ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
57 echo -n "Reloading $prog: "
78 if [ -f $lockdir/$prog ]; then
87 echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"