Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2014 22:33:34 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270676 - head/etc
Message-ID:  <201408262233.s7QMXYfd056791@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Aug 26 22:33:34 2014
New Revision: 270676
URL: http://svnweb.freebsd.org/changeset/base/270676

Log:
  Allow to configure services from ${LOCALBASE}/etc/rc.conf.d
  
  Reviewed by:	bdrewery
  MFC after:	1 week
  Relnotes:	yes

Modified:
  head/etc/rc.subr

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Tue Aug 26 22:20:02 2014	(r270675)
+++ head/etc/rc.subr	Tue Aug 26 22:33:34 2014	(r270676)
@@ -1301,6 +1301,10 @@ load_rc_config()
 			fi
 		done
 	fi
+	if [ -f ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name" ]; then
+		debug "Sourcing ${LOCALBASE:-/usr/local}/etc/rc.conf.d/${_name}"
+		. ${LOCALBASE:-/usr/local}/etc/rc.conf.d/"$_name"
+	fi
 
 	# Set defaults if defined.
 	for _var in $rcvar; do



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