summaryrefslogtreecommitdiff
path: root/sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r1
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r1')
-rw-r--r--sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r117
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r1 b/sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r1
new file mode 100644
index 000000000000..16e2cc3f12bf
--- /dev/null
+++ b/sys-fs/lvm2/files/lvmlockd.initd-2.02.166-r1
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/run/lvmlockd.pid"
+command="/sbin/lvmlockd"
+command_args="${LVMLOCKD_OPTS:--p ${pidfile}} ${LVMLOCKD_TYPE:--g sanlock}"
+start_stop_daemon_args="--pidfile ${pidfile}"
+
+depend() {
+ before sanlock
+}
+
+start_pre()
+{
+ checkpath --directory /run/lvm || return 1
+}