#! /bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/sbin/multipath
NAME=multipath-tools-boot
DESC="multipath"

test -x $DAEMON || exit 0

if [ -f /etc/default/multipath-tools ] ; then
	. /etc/default/multipath-tools
fi

set -e

case "$1" in
  start)
	echo -n "Starting $DESC"
	modprobe dm-multipath 2> /dev/null || true
	$DAEMON -v 0
	echo "."
	;;
  stop)
	;;
  restart|force-reload)
	echo -n "Restarting $DESC: "
	$DAEMON -v 0
	echo "."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0
