summarylogtreecommitdiffstats
path: root/dmeventd.initd
diff options
context:
space:
mode:
authorŁukasz Mariański2021-01-06 11:10:43 +0100
committerŁukasz Mariański2021-01-06 11:10:43 +0100
commit59022bfbd711f8500c47be6da82d83fc118240e9 (patch)
treeaf184697c0e6b24af60cf87ece8778f122be0440 /dmeventd.initd
downloadaur-device-mapper-openrc.tar.gz
Init
Diffstat (limited to 'dmeventd.initd')
-rw-r--r--dmeventd.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/dmeventd.initd b/dmeventd.initd
new file mode 100644
index 00000000000..746470418a6
--- /dev/null
+++ b/dmeventd.initd
@@ -0,0 +1,25 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PIDFILE=/run/dmeventd.pid
+BIN=/usr/bin/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 $?
+}
+