Date: Mon, 20 Jun 2011 09:50:36 -0700 From: "Devin Teske" <dteske@vicor.com> To: <swehack@gmail.com>, <freebsd-rc@freebsd.org> Subject: RE: Status of /etc/rc.conf.d/servicename feature in rc.subr Message-ID: <010e01cc2f6a$2e53e270$8afba750$@vicor.com> In-Reply-To: <BANLkTimmVTjA1Dkm-hMz7ZMEsGNBSxm4kA@mail.gmail.com> References: <BANLkTimmVTjA1Dkm-hMz7ZMEsGNBSxm4kA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-rc@freebsd.org [mailto:owner-freebsd-rc@freebsd.org] > On Behalf Of Stefan Midjich > Sent: Monday, June 20, 2011 1:20 AM > To: freebsd-rc@freebsd.org > Subject: Status of /etc/rc.conf.d/servicename feature in rc.subr >=20 > I noticed in /etc/rc.subr that the function load_rc_config sources > /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions th= is > feature in rc.conf(5) but FreeBSD does not. The `rc.conf.d' feature is documented (albeit loosely) in the FreeBSD 9-CUR= RENT rc.conf(5) man-page, viewable here: http://www.freebsd.org/cgi/man.cgi?query=3Drc.conf&apropos=3D0&sektion=3D0&= manpath=3DFre eBSD+9-current&format=3Dhtml Though, as forewarned by others, this documentation is likely to change. Ke= ep up-to-date with /etc/rc.subr, UPDATING, ERRATA, and rc.conf(5) for future updates. --=20 Devin >=20 > I have two questions, is this a new undocumented feature, or an old one b= eing > phased out? I'm hoping it's a new because I really want this feature. >=20 > Second question, how do I use it? I've tried to track the ${_name} variab= le but I > can't find anyone calling the parent function > load_rc_config_var() where the name variable is set from its first argume= nt. >=20 > 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 > -- >=20 >=20 > Med v=E4nliga h=E4lsningar / With kind regards >=20 > Stefan Midjich > http://swehack.se > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010e01cc2f6a$2e53e270$8afba750$>