aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/multipath.initd
blob: fd2bd1d0e4f0af272d81ac41e2b63eafec8a4cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

depend() {
	before checkfs fsck multipathd iscsid lvm
	after modules device-mapper
}

start() {
	ebegin "Loading multipath modules"
	modprobe -aq dm_mod dm-multipath
	eend $?

	ebegin "Activating multipath devices"
	multipath -v0 >/dev/null
	eend $?
}

stop() {
	ebegin "Deactivating multipath devices"
	multipath -v0 -F >/dev/null
	eend $?
}