Latest revision |
Your text |
Line 4: |
Line 4: |
| ==Introduction== | | ==Introduction== |
| | | |
− | The file [https://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5 '''rc.conf'''] contains descriptive information about the local host name, configuration details for any potential network interfaces and which services should be started up at system initial boot time. In new installations, the [[Rc.conf|'''rc.conf''']] file is generally initialized by the system installation utility.
| |
| | | |
− | The shell script '''/etc/defaults/rc.conf''' specifies the default settings for all the available options and includes the '''/etc/[[Rc.conf|rc.conf]]''' file. Options need only be specified in '''/etc/[[Rc.conf|rc.conf]]''' when the system administrator wishes to override these defaults.
| |
| | | |
− | This '''/etc/defaults/rc.conf''' is a file full of useful variables that you can set to change the default startup behavior of your system. '''You should not edit this file!''' Put any overrides the '''/etc/[[Rc.conf|rc.conf]]''' file and you will be able to update these defaults later without spamming your local configuration information.
| |
| | | |
− | The the '''/etc/[[Rc.conf|rc.conf]]''' file should only contain values which override values set in this file. This eases the upgrade path when defaults are changed and new features are added.
| |
| | | |
− | All arguments must be in double or single quotes.
| |
| | | |
− | ==Shell Script and Default Settings==
| |
− |
| |
− | Options are set with "name=value" assignments that use [https://www.freebsd.org/cgi/man.cgi?query=sh&sektion=1&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sh(1)] syntax.<br/>
| |
− | '''/etc/defaults/rc.conf''' file contains the following sections:
| |
− | * Important initial Boot-time options
| |
− | * Network configuration sub-section
| |
− | * System console options
| |
− | * Mail Transfer Agent (MTA) options
| |
− | * Miscellaneous administrative options
| |
− | * Jail Configuration (see rc.conf(5) manual page)
| |
− | * Define source_rc_confs, the mechanism used by '''/etc/rc.*''' scripts to source rc_conf_files overrides safely.
| |
− | * Allow vendors to override FreeBSD defaults in '''/etc/default/rc.conf '''without the need to carefully manage '''/etc/[[Rc.conf|rc.conf]]'''.
| |
− | * Global [[OpenRC]] configuration settings
| |
− | * MISC CONFIGURATION VARIABLES, there variables are shared between many init scripts
| |
− | * SERVICE CONFIGURATION VARIABLES
| |
− |
| |
− | For a more detailed explanation of all the rc.conf variables, please refer to the [https://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5 rc.conf(5)] manual page.
| |
| | | |
| | | |
| [[Category:Sysutils]] | | [[Category:Sysutils]] |