aports/main/device-mapper/dmeventd.initd
Guy Godfroy a37dc19966 main/device-mapper: new aport
Split device-mapper components out of lvm2 into a standalone aport to
break the circular build dependency between sanlock and lvm2.

Uses LVM2 upstream's make device-mapper / make install_device-mapper
targets to build only the device-mapper components (libdevmapper,
dmsetup, dmeventd, udev rules) without pulling in any LVM2-specific
dependencies.

Provides the device-mapper*, device-mapper-dev, device-mapper-libs,
device-mapper-event-libs, device-mapper-static, device-mapper-udev,
device-mapper-dmeventd* subpackages previously built by lvm2.
2026-04-22 10:43:30 +00:00

27 lines
684 B
Bash

#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $
PIDFILE=/run/dmeventd.pid
BIN=/sbin/dmeventd
depend() {
# As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
# means dmeventd is NOT notified, as it cannot be safely running
after lvm device-mapper
}
start() {
ebegin "Starting dmeventd"
start-stop-daemon --start --exec $BIN --pidfile $PIDFILE
eend $?
}
stop() {
ebegin "Stopping dmeventd"
start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE
eend $?
}