Difference between revisions of "Defaults/rc.conf"

From GhostBSD Wiki
Jump to: navigation, search
(Introduction)
(Introduction)
 
(One intermediate revision by the same user not shown)
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''']] file is generally initialized by the system installation utility.
+
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 /etc/[[Rc.conf|rc.conf]] file is included from the file '''/etc/defaults/rc.conf''', which specifies the default settings for all the available options.  Options need only be specified in /etc/rc.conf when the system administrator wishes to override these defaults.
+
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]]

Latest revision as of 14:28, 18 March 2020

Welcome to Icon Disti GhostBSD.png Defaults/rc.conf.
OpenRC
Scripts
/etc/rc
rc - shell
/etc/rc.devd
The generic hook into OpenRC.
/sbin/rcorder
Ordering rc-scripts
/etc/init.d
Scripts to run OpenRC
/usr/local/etc/init.d
Scripts to run OpenRC
/etc/rc.d
Scripts automatically executed at boot and shutdown
/usr/local/etc/rc.d
Special scripts
Configuration
/etc/devd.conf
Configuration file for devd(8)
/etc/conf.d
Initscript Configuration Files
/etc/rc.conf.d
Smaller configuration files
/etc/defaults/rc.conf
Specifies the default settings for all the available options.
/etc/rc.conf
The global OpenRC configuration file
/etc/rc.conf.ghostbsd
GhostBSD specific configurations
Tools/Helper
/usr/sbin/sysrc
Safely edit system rc files
/bin/rc-status
Shows which services are running
/sbin/rc-update
Add or delete services
/sbin/rc-service
Locate and run an OpenRC service
Back to the Icon Disti GhostBSD.pngSystem

Introduction[edit]

The file 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 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 file. Options need only be specified in /etc/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 file and you will be able to update these defaults later without spamming your local configuration information.

The the /etc/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[edit]

Options are set with "name=value" assignments that use sh(1) syntax.
/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.
  • 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 rc.conf(5) manual page.