File: multipathd.init.debian

package info (click to toggle)
multipath-tools 0.4.8%2Bgit0.761c66f-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,536 kB
  • ctags: 2,590
  • sloc: ansic: 22,254; sh: 549; makefile: 254
file content (35 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/bin/multipathd
PIDFILE=/var/run/multipathd.pid

test -x $DAEMON || exit 0

case "$1" in
  start)
	echo -n "Starting multipath daemon: multipathd"
        $DAEMON
	echo "."
	;;
  stop)
	echo -n "Stopping multipath daemon: multipathd"
	echo "."
	if [ -f $PIDFILE ]
	then
		kill `cat $PIDFILE`
	else
		echo "multipathd not running: Nothing to stop..."
	fi
	;;
  force-reload|restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: /etc/init.d/multipathd {start|stop|restart|force-reload}"
	exit 1
	;;
esac

exit 0