summaryrefslogtreecommitdiff
path: root/skip/lvm2/dmeventd.initd
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-28 19:37:22 +0100
committerdavidovski <david@davidovski.xyz>2022-05-28 19:37:22 +0100
commit5170f5c85fe0e84fe8af55c6a024c7b6e844b0f1 (patch)
tree105f4e0fc05bac2fbdc03ab446987eaaa477988c /skip/lvm2/dmeventd.initd
parent4615385d6c8203001962a7a31dd02cdb1a73544b (diff)
fixed packages
Diffstat (limited to 'skip/lvm2/dmeventd.initd')
-rw-r--r--skip/lvm2/dmeventd.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/skip/lvm2/dmeventd.initd b/skip/lvm2/dmeventd.initd
new file mode 100644
index 0000000..c46f8ba
--- /dev/null
+++ b/skip/lvm2/dmeventd.initd
@@ -0,0 +1,26 @@
+#!/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 $?
+}
+