3 PATH=/bin:/usr/bin:/sbin:/usr/sbin
4 DAEMON=/usr/bin/multipathd
5 PIDFILE=/var/run/multipathd.pid
7 test -x $DAEMON || exit 0
11 echo -n "Starting multipath daemon: multipathd"
12 if start-stop-daemon --quiet --stop --signal 0 --pidfile $PIDFILE --name multipathd
14 echo " already running."
17 /sbin/start-stop-daemon --start --quiet --exec $DAEMON
21 echo -n "Stopping multipath daemon: multipathd"
22 if start-stop-daemon --quiet --stop --signal 0 --pidfile $PIDFILE --name multipathd
25 start-stop-daemon --quiet --stop --exec $DAEMON --pidfile $PIDFILE --name multipathd
26 # Now we wait for it to die
27 while kill -0 $PID 2>/dev/null; do sleep 1; done
38 echo "Usage: /etc/init.d/multipathd {start|stop|restart|force-reload}"