Skip to content

Editing rc_conf_files on FreeBSD

In FreeBSD’s /etc/default/rc.conf, the location of the rc.conf system configuration files is defined in the variable rc_conf_files. If you’re modularizing your rc.conf files – say, for use with Cfengine – you may be tempted to change the value of rc_conf_files in /etc/rc.conf or/etc/rc.conf.local. However, this change will not be picked up by itself – you need to call source_rc_confs after changing rc_conf_files, similar to this:

rc_conf_files="/etc/rc.conf /etc/rc.conf.local /etc/rc.conf.amd"
source_rc_confs

(Tip seen on the freebsd-ports list.)

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*