NetBSD/etc/rc.d/lvmlockdir

28 lines
513 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: lvmlockdir,v 1.1 2021/01/26 13:31:19 martin Exp $
#
# REQUIRE: mountcritlocal
# BEFORE: CRITLOCALMOUNTED
$_rc_subr_loaded . /etc/rc.subr
name="lvmlockdir"
start_cmd="lvmlockdir_start"
stop_cmd=":"
lvmlockdir_start()
{
# create LVM locking directory, it needs to be owned by operator
# group and has parmissions to allow lock file creation.
#
mkdir -p /var/run/lvm
chown root:operator /var/run/lvm
chmod 770 /var/run/lvm
return 0
}
load_rc_config $name
run_rc_command "$1"