Date: 6 Jan 2024 23:10:31 -0500 From: "John R. Levine" <johnl@iecc.com> To: "Juan Manuel Palacios" <jmpalacios@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Moving /etc/rc.conf.local to /usr/local/etc/rc.conf Message-ID: <73678f67-e49f-365a-da09-5575619d736b@iecc.com> In-Reply-To: <158D9F44-5633-4B4E-A781-834574F42F67@gmail.com> References: <20240106214844.5B9DA7FE2A02@ary.qy> <158D9F44-5633-4B4E-A781-834574F42F67@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Thank you for pointing out that entry in the rc.conf(5) man page! I guess I either didn’t pay too much attention to it at first, and/or I was thrown off either by the meaning of “(dir)” in that paragraph, which I can only assume maps to /usr/local/etc (but I still haven’t tested to confirm that), or by the fact that you can only use “(name)” configuration files inside rc.conf.d within “(dir)”, rather than just a plain rc.conf file within “(dir)”. > > So, if I’m I’m understanding correctly, that’d mean that I can have configuration files (*NOT* script files, which would go inside “(dir)”/rc.d) such as: > > /usr/local/etc/rc.conf.d/apache24 > /usr/local/etc/rc.conf.d/php-fpm Sure. > but not a single one named: > > /usr/local/etc/rc.conf Um, if you'd read to the end of that paragraph, you'd have found rc_conf_files which lists individual files to include. These are just files of shell commands that are included by the startup scripts. Take a look at /etc/defaults/rc.conf (described in the third paragraph of that same man page) and see what it does. Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73678f67-e49f-365a-da09-5575619d736b>