1 #!/bin/sh 2 # 3 # $NetBSD: lvmlockdir,v 1.1 2021/01/26 13:31:19 martin Exp $ 4 # 5 6 # REQUIRE: mountcritlocal 7 # BEFORE: CRITLOCALMOUNTED 8 9 $_rc_subr_loaded . /etc/rc.subr 10 11 name="lvmlockdir" 12 start_cmd="lvmlockdir_start" 13 stop_cmd=":" 14 15 lvmlockdir_start() 16 { 17 # create LVM locking directory, it needs to be owned by operator 18 # group and has parmissions to allow lock file creation. 19 # 20 mkdir -p /var/run/lvm 21 chown root:operator /var/run/lvm 22 chmod 770 /var/run/lvm 23 return 0 24 } 25 26 load_rc_config $name 27 run_rc_command "$1" 28