Difference between revisions of "Rc.conf"

From GhostBSD Wiki
Jump to: navigation, search
(Example)
(Introduction)
Line 8: Line 8:
  
 
The global [[OpenRC]] configuration file.<br/>
 
The global [[OpenRC]] configuration file.<br/>
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 purpose of rc.conf is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup  scripts in ''/etc'' which conditionalize their internal actions according to  the settings found there.
+
==Description==
  
The ''/etc/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 file ''/etc/rc.conf.local'' is used to override settings in ''/etc/rc.conf'' for historical reasons.
+
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 purpose of '''rc.conf''' is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup  scripts in '''/etc''' which conditionalize their internal actions according to  the settings found there.
 +
 
 +
The '''/etc/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 file '''/etc/rc.conf.local''' is used to override settings in '''/etc/rc.conf''' for historical reasons.
  
 
The [https://www.freebsd.org/cgi/man.cgi?query=sysrc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sysrc(8)] command provides a scripting interface to modify system config files.
 
The [https://www.freebsd.org/cgi/man.cgi?query=sysrc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sysrc(8)] command provides a scripting interface to modify system config files.
 +
 +
In addition to '''/etc/rc.conf.local''' you can also place smaller configuration files for each [https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports rc(8)] script in the '''/etc/rc.conf.d''' directory.
  
 
==Example==
 
==Example==

Revision as of 05:44, 17 March 2020

Welcome to Icon Disti GhostBSD.png Rc.conf.
This page is in maintenance!
Please do not change this page without to contact the author or use Discussion!
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

/etc/rc.conf

The global OpenRC configuration file.

Description

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 purpose of rc.conf is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup scripts in /etc which conditionalize their internal actions according to the settings found there.

The /etc/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 file /etc/rc.conf.local is used to override settings in /etc/rc.conf for historical reasons.

The sysrc(8) command provides a scripting interface to modify system config files.

In addition to /etc/rc.conf.local you can also place smaller configuration files for each rc(8) script in the /etc/rc.conf.d directory.

Example

The command cat /etc/rc.conf will show you somthing like this:

Name Description
root_rw_mount="NO"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
devfs_system_ruleset="devfsrules_common"
kld_list="linux linux64 cuse"
ntpd_sync_on_start="YES"
ifconfig_nfe0="DHCP"
keymap="de.kbd"
hostname="slughorn.ghostbsd-pc.home"
kldload_nvidia="nvidia-modeset nvidia"
kldload_nvidia="nvidia-modeset nvidia"
autofs_enable="YES"
lpd_enable="NO"
cupsd_enable="YES"
dsbmd_enable="NO"
hald_enable="YES"
kldload_vbox="vboxdrv"
vboxnet_enable="YES"
vboxguest_enable="YES"
vboxservice_enable="YES"
ifconfig_em0="DHCP"