aports/main/multipath-tools/multipath.initd
Carlo Landmeter d11a553cf7 main/multipath-tools: fix initd
modprobe needs -a switch for multiple modules
2019-10-14 14:00:17 +00:00

23 lines
363 B
Plaintext

#!/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 $?
}