mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-28 20:11:34 +01:00
23 lines
363 B
Plaintext
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 $?
|
|
}
|