Files
pmaports-rtwo/temp/multipath-tools/multipath-tools.initd
T
Oliver Smith cb1e3c20b4 temp/multipath-tools: fork from alpine to rebuild
Rebuild to fix:
ERROR: unsatisfiable constraints:
  so:liburcu.so.6 (missing):
    required by: multipath-tools-0.8.1-r0[so:liburcu.so.6]

Upstream patch:
https://github.com/alpinelinux/aports/pull/8319
2019-05-31 02:19:40 +02:00

38 lines
770 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/sys-fs/multipath-tools/files/rc-multipathd,v 1.5 2009/03/17 22:48:13 solar Exp $
depend() {
after firewall
}
do_nodes() {
for dev in $(ls /dev/mapper/mpath*)
do
kpartx -a $dev
done
}
undo_nodes() {
for dev in $(ls /dev/mapper/mpath*)
do
kpartx -d $dev
done
}
start() {
ebegin "Starting multipathd"
start-stop-daemon --start --quiet --make-pidfile \
--pidfile /var/run/multipathd.pid --exec /sbin/multipathd
do_nodes
eend $?
}
stop() {
ebegin "Stopping multipathd"
undo_nodes
start-stop-daemon --stop --quiet --retry --pidfile /var/run/multipathd.pid
eend $?
}