Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 16:09:29 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335147 - in head/etc: devd rc.d
Message-ID:  <201806141609.w5EG9Tpj057315@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Thu Jun 14 16:09:29 2018
New Revision: 335147
URL: https://svnweb.freebsd.org/changeset/base/335147

Log:
  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

Modified:
  head/etc/devd/devmatch.conf
  head/etc/rc.d/devmatch

Modified: head/etc/devd/devmatch.conf
==============================================================================
--- head/etc/devd/devmatch.conf	Thu Jun 14 16:01:11 2018	(r335146)
+++ head/etc/devd/devmatch.conf	Thu Jun 14 16:09:29 2018	(r335147)
@@ -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:

Modified: head/etc/rc.d/devmatch
==============================================================================
--- head/etc/rc.d/devmatch	Thu Jun 14 16:01:11 2018	(r335146)
+++ head/etc/rc.d/devmatch	Thu Jun 14 16:09:29 2018	(r335147)
@@ -33,6 +33,7 @@
 
 name="devmatch"
 desc="Use devmatch(8) to load kernel modules"
+rcvar="${name}_enable"
 
 start_cmd="${name}_start"
 stop_cmd=':'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806141609.w5EG9Tpj057315>