Status of /etc/rc.conf.d/servicename feature in rc.subr

Devin Teske dteske at vicor.com
Mon Jun 20 16:50:37 UTC 2011


> -----Original Message-----
> From: owner-freebsd-rc at freebsd.org [mailto:owner-freebsd-rc at freebsd.org]
> On Behalf Of Stefan Midjich
> Sent: Monday, June 20, 2011 1:20 AM
> To: freebsd-rc at freebsd.org
> Subject: Status of /etc/rc.conf.d/servicename feature in rc.subr
> 
> I noticed in /etc/rc.subr that the function load_rc_config sources
> /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions this
> feature in rc.conf(5) but FreeBSD does not.

The `rc.conf.d' feature is documented (albeit loosely) in the FreeBSD 9-CURRENT
rc.conf(5) man-page, viewable here:

http://www.freebsd.org/cgi/man.cgi?query=rc.conf&apropos=0&sektion=0&manpath=Fre
eBSD+9-current&format=html

Though, as forewarned by others, this documentation is likely to change. Keep
up-to-date with /etc/rc.subr, UPDATING, ERRATA, and rc.conf(5) for future
updates.
-- 
Devin

> 
> I have two questions, is this a new undocumented feature, or an old one being
> phased out? I'm hoping it's a new because I really want this feature.
> 
> Second question, how do I use it? I've tried to track the ${_name} variable
but I
> can't find anyone calling the parent function
> load_rc_config_var() where the name variable is set from its first argument.
> 
> I've done some trial and error by creating files called
> /etc/rc.conf.d/{ifconfig,ifconfig_em0,ifconfig_em0_alias} to try and add an
alias
> just to see if it works. Negative results though as no changes are made.
> 
> --
> 
> 
> Med vänliga hälsningar / With kind regards
> 
> Stefan Midjich
> http://swehack.se
> _______________________________________________
> freebsd-rc at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe at freebsd.org"

_____________

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
_____________


More information about the freebsd-rc mailing list