Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2011 10:20:21 +0200
From:      Stefan Midjich <swehack@gmail.com>
To:        freebsd-rc@freebsd.org
Subject:   Status of /etc/rc.conf.d/servicename feature in rc.subr
Message-ID:  <BANLkTimmVTjA1Dkm-hMz7ZMEsGNBSxm4kA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.

--=20


Med v=E4nliga h=E4lsningar / With kind regards

Stefan Midjich
http://swehack.se



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