3 # multipathd Starts multipath daemon
7 # description: The multipathd daemon is in charge of checking for failed paths.
11 # Source function library
12 . /etc/rc.d/init.d/functions
14 # Get service config - may override defaults
15 [ -f /etc/sysconfig/multipathd ] && . /etc/sysconfig/multipathd
18 # Check if the service is already running?
19 if [ -f /var/lock/subsys/multipathd ]; then
20 msg_already_running "multipath daemon"
24 msg_starting "multipath daemon"
26 daemon /sbin/multipathd
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/multipathd
32 if [ ! -f /var/lock/subsys/multipathd ]; then
33 msg_not_running "multipath daemon"
38 msg_stopping "multipath daemon"
39 killproc --pidfile multipathd.pid multipathd -TERM
40 rm -f /var/lock/subsys/multipathd
44 if [ ! -f /var/lock/subsys/multipathd ]; then
45 msg_not_running "multipath daemon"
56 # See how we were called.
79 msg_usage "$0 {start|stop|status|restart|try-restart|force-reload}"