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

Stefan Midjich swehack at gmail.com
Mon Jun 20 08:47:44 UTC 2011


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.

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


More information about the freebsd-rc mailing list