Modifying System Settings
The main resource configuration script, /etc/rc, is a completely automated “harness” that reads in a global configuration file and then executes a series of other scripts from /etc/rc.d in a specific order. Now that you know what the /etc/rc.d scripts do, we can look at how to configure the behavior of /etc/rc.
The /etc/defaults/rc.conf File
The /etc/rc program is a shell script that operates based on the states of dozens of different variables. If a certain variable (for instance, sendmail_enable) is set to YES, /etc/rc will run the /etc/rc.d script that starts Sendmail. If the variable is set to NO, it does not run the Sendmail script.
FreeBSD is installed with a file that defines all the default states for all the ...
Get Sams Teach Yourself FreeBSD® in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.