summaryrefslogtreecommitdiff
blob: 7067391f03e36c5045b3bcd43f39832c7717a521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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 $?
}