summaryrefslogtreecommitdiff
blob: bf3292a797f4892ec8bec9b67dfaee32ee06f8de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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
}