aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-06-14 16:09:29 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-06-14 16:09:29 +0000
commit9d3730e5141d8412de1722c08fd60d8632e0401b (patch)
tree4006bf5d935cfba0e052f0fe7fade59f6ab488bf
parent402c7806cb98f81d637b8a7556745fdd55981147 (diff)
downloadsrc-9d3730e5141d8412de1722c08fd60d8632e0401b.tar.gz
src-9d3730e5141d8412de1722c08fd60d8632e0401b.zip
devmatch: Address some rc nits
- devmatch_enable in rc.conf(5) was not gating the start of devmatch - Use quietstart in devd/devmatch to suppress dozens of 'Cannot start' messages and other spurious messages from rc.subr(8) that aren't necessarily helpful. Discussed with: imp
Notes
Notes: svn path=/head/; revision=335147
-rw-r--r--etc/devd/devmatch.conf2
-rwxr-xr-xetc/rc.d/devmatch1
2 files changed, 2 insertions, 1 deletions
diff --git a/etc/devd/devmatch.conf b/etc/devd/devmatch.conf
index b9a93c43d851..c94f56fbf23e 100644
--- a/etc/devd/devmatch.conf
+++ b/etc/devd/devmatch.conf
@@ -9,7 +9,7 @@
#
# Generic NOMATCH event
nomatch 100 {
- action "service devmatch start '?$_'";
+ action "service devmatch quietstart '?$_'";
};
# Add the following to devd.conf to prevent this from running:
diff --git a/etc/rc.d/devmatch b/etc/rc.d/devmatch
index d8f83e6bb584..ebc09742a1f3 100755
--- a/etc/rc.d/devmatch
+++ b/etc/rc.d/devmatch
@@ -33,6 +33,7 @@
name="devmatch"
desc="Use devmatch(8) to load kernel modules"
+rcvar="${name}_enable"
start_cmd="${name}_start"
stop_cmd=':'