From 9d3730e5141d8412de1722c08fd60d8632e0401b Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 14 Jun 2018 16:09:29 +0000 Subject: [PATCH] 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 --- etc/devd/devmatch.conf | 2 +- etc/rc.d/devmatch | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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=':'