[build] legacy files update
[platform/upstream/multipath-tools.git] / multipathd / multipathd.init.debian
1 #!/bin/sh
2
3 PATH=/bin:/usr/bin:/sbin:/usr/sbin
4 DAEMON=/usr/bin/multipathd
5 PIDFILE=/var/run/multipathd.pid
6
7 test -x $DAEMON || exit 0
8
9 case "$1" in
10   start)
11         echo -n "Starting multipath daemon: multipathd"
12         $DAEMON
13         echo "."
14         ;;
15   stop)
16         echo -n "Stopping multipath daemon: multipathd"
17         echo "."
18         if [ -f $PIDFILE ]
19         then
20                 kill `cat $PIDFILE`
21         else
22                 echo "multipathd not running: Nothing to stop..."
23         fi
24         ;;
25   force-reload|restart)
26         $0 stop
27         $0 start
28         ;;
29   *)
30         echo "Usage: /etc/init.d/multipathd {start|stop|restart|force-reload}"
31         exit 1
32         ;;
33 esac
34
35 exit 0