Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
RC(8)			FreeBSD	System Manager's Manual			 RC(8)

NAME
     rc	-- command scripts for auto-reboot and daemon startup

SYNOPSIS
     rc
     rc.conf
     rc.conf.local
     rc.serial
     rc.pccard
     rc.network
     rc.firewall
     rc.atm
     rc.<arch>
     rc.local
     rc.shutdown

DESCRIPTION
     Rc	is the command script which controls the automatic reboot (calling the
     other scripts) and	rc.local is the	script holding commands	which are per-
     tinent only to a specific site.  Typically, the /usr/local/etc/rc.d mech-
     anism is used instead of rc.local these days but if you do	want to	use
     rc.local, /etc/rc still supports it.  In this case, rc.local should
     source /etc/rc.conf and contain additional	custom startup code for	your
     system.  Rc.conf contains the global system configuration information
     referenced	by the rc files, while rc.conf.local contains the local	system
     configuration.  See rc.conf(5)

     Rc.shutdown is the	command	script which contains any necessary commands
     to	be executed as the system is shut down.

     When an automatic reboot is in progress, rc is invoked with the argument
     autoboot.	The first portion of rc	runs an	fsck(8)	with option -p to
     ``preen'' all the disks of	minor inconsistencies resulting	from the last
     system shutdown and to check for serious inconsistencies caused by	hard-
     ware or software failure.	If this	auto-check and repair succeeds,	then
     the second	part of	rc is run.

     The second	part of	rc, which is run after an auto-reboot succeeds and
     also if rc	is invoked when	a single user shell terminates (see init(8)),
     starts all	the daemons on the system, preserves editor files and clears
     the scratch directory /tmp.

     Rc.serial is used to set any special configurations for serial devices.

     Rc.pccard is used to enable PC-cards.

     Rc.network	is used	to start the network.  The network is started in three
     passes.  The first	pass sets the hostname and domainname, configures the
     network interfaces, turns on any IP firewall rules, and starts routing.
     The second	pass starts most of the	network	related	daemons.  The third
     pass starts NFS, amd, rwhod, Kerberos and the multicast routing daemon.

     Rc.firewall is used to configure rules for	the kernel based firewall ser-
     vice.  It has several possible options:

	   open	       will allow anyone in.
	   client      will try	to protect just	this machine.
	   simple      will try	to protect a whole network.
	   closed      totally disables	IP services except via lo0 interface.
	   UNKNOWN     disables	the loading of firewall	rules.
	   filename    will load the rules in the given	filename (full path
		       required).

     Rc.atm is used to configure ATM network interfaces.  The interfaces are
     configured	in three passes.  The first pass performs the initial inter-
     face configuration.  The second pass completes the	interface configura-
     tion and defines PVCs and permanent ATMARP	entries.  The third pass
     starts any	ATM daemons.

     Rc.<arch> runs architecture specific programs.

     Rc.local is executed after	the scripts above, but before the rest of the
     rc	file is	completed.  Presently, all rc.local does is to put version
     information in /etc/motd.

     Following tradition, the startup files reside in /etc.

SEE ALSO
     rc.conf(5), init(8), reboot(8), savecore(8)

HISTORY
     The rc command appeared in	4.0BSD.

4th Berkeley Distribution      December	11, 1993     4th Berkeley Distribution

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&manpath=FreeBSD+4.0-RELEASE>

home | help