Module Name:    src
Committed By:   martin
Date:           Tue Jan 26 13:31:19 UTC 2021

Modified Files:
        src/distrib/sets/lists/etc: mi
Added Files:
        src/etc/rc.d: lvmlockdir
Removed Files:
        src/etc/rc.d: llvmlockdir

Log Message:
Rename etc/rc.d/llvmlockdir to lvmlockdir - it has nothing to do with LLVM,
the name probably was a freudian slip of my fingers when I split that
fragment out of another rc.d script.


To generate a diff of this commit:
cvs rdiff -u -r1.264 -r1.265 src/distrib/sets/lists/etc/mi
cvs rdiff -u -r1.2 -r0 src/etc/rc.d/llvmlockdir
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/lvmlockdir

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/etc/mi
diff -u src/distrib/sets/lists/etc/mi:1.264 src/distrib/sets/lists/etc/mi:1.265
--- src/distrib/sets/lists/etc/mi:1.264	Sun Jan 10 23:24:25 2021
+++ src/distrib/sets/lists/etc/mi	Tue Jan 26 13:31:19 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.264 2021/01/10 23:24:25 riastradh Exp $
+# $NetBSD: mi,v 1.265 2021/01/26 13:31:19 martin Exp $
 #
 # Note: end-user configuration files that are moved to another location
 #	should not be marked "obsolete"; they should just be removed from
@@ -247,10 +247,11 @@
 ./etc/rc.d/lkm1					etc-obsolete		obsolete
 ./etc/rc.d/lkm2					etc-obsolete		obsolete
 ./etc/rc.d/lkm3					etc-obsolete		obsolete
-./etc/rc.d/llvmlockdir				etc-sys-rc
+./etc/rc.d/llvmlockdir				etc-obsolete		obsolete
 ./etc/rc.d/local				etc-sys-rc
 ./etc/rc.d/lpd					etc-lpr-rc
 ./etc/rc.d/lvm					etc-sys-rc
+./etc/rc.d/lvmlockdir				etc-sys-rc
 ./etc/rc.d/makemandb				etc-man-rc
 ./etc/rc.d/mdnsd				etc-mdns-rc
 ./etc/rc.d/mixerctl				etc-audio-rc

Added files:

Index: src/etc/rc.d/lvmlockdir
diff -u /dev/null src/etc/rc.d/lvmlockdir:1.1
--- /dev/null	Tue Jan 26 13:31:19 2021
+++ src/etc/rc.d/lvmlockdir	Tue Jan 26 13:31:19 2021
@@ -0,0 +1,27 @@
+#!/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"

Reply via email to