aboutsummaryrefslogblamecommitdiffstats
path: root/main/multipath-tools/multipath.initd
blob: 93665b5b159f66867cde1f67fb89bd6795f583d8 (plain) (tree)





















                                                 
#!/sbin/openrc-run

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

start() {
	ebegin "Loading multipath modules"
	modprobe -q 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 $?
}