summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-02-26 02:44:17 +0000
committerjkh <jkh@FreeBSD.org>1998-02-26 02:44:17 +0000
commitd12528aaff5d72bc2625885e7e098f3113271550 (patch)
tree802f948c4b58a20e43cd2cdc027cc38bd905171e /share
parent09726f29204aff786da80ad604981a20a43d222f (diff)
downloadFreeBSD-src-d12528aaff5d72bc2625885e7e098f3113271550.zip
FreeBSD-src-d12528aaff5d72bc2625885e7e098f3113271550.tar.gz
Update man page to reflect reality.
PR: 5828 Submitted by: Stephen J. Roznowski <sjr@home.net>
Diffstat (limited to 'share')
-rw-r--r--share/man/man8/rc.886
1 files changed, 66 insertions, 20 deletions
diff --git a/share/man/man8/rc.8 b/share/man/man8/rc.8
index f670b1a..bbce975 100644
--- a/share/man/man8/rc.8
+++ b/share/man/man8/rc.8
@@ -30,23 +30,41 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rc.8 8.2 (Berkeley) 12/11/93
-.\" $Id$
+.\" $Id: rc.8,v 1.3 1997/03/07 03:28:21 jmg Exp $
.\"
.Dd December 11, 1993
.Dt RC 8
.Os BSD 4
.Sh NAME
.Nm rc
-.Nd command script for auto\-reboot and daemons
+.Nd command scripts for auto\-reboot and daemon startup
.Sh SYNOPSIS
.Nm rc
+.Nm rc.conf
+.Nm rc.conf.local
+.Nm rc.serial
+.Nm rc.pccard
+.Nm rc.network
+.Nm rc.firewall
+.Nm rc.<arch>
.Nm rc.local
+.Nm rc.shutdown
.Sh DESCRIPTION
.Nm Rc
-is the command script which controls the automatic reboot and
+is the command script which controls the automatic reboot
+(calling the other scripts) and
.Nm rc.local
is the script holding commands which are pertinent only
to a specific site.
+.Nm Rc.conf
+contains the global system configuration information referenced
+by the rc files, while
+.Nm rc.conf.local
+contains the local system configuration.
+.Pp
+.Nm Rc.shutdown
+is the command script which contains any necessary commands
+to be executed as the system is shut down.
.Pp
When an automatic reboot is in progress,
.Nm rc
@@ -75,28 +93,56 @@ starts all the daemons on the system, preserves editor files
and clears the scratch directory
.Pa /tmp .
.Pp
-.Nm Rc.local
-is executed immediately before any other commands after a successful
-.Nm fsck .
-Normally, the first commands placed in the
-.Nm rc.local
-file define the machine's name, using
-.Xr hostname 1 ,
-and save any possible core image that might have been
-generated as a result of a system crash, with
-.Xr savecore 8 .
-The latter command is included in the
-.Nm rc.local
-file because the directory in which core dumps are saved
-is usually site specific.
+.Nm Rc.serial
+is used to set any special configurations for serial devices.
+.Pp
+.Nm Rc.pccard
+is used to enable PC-cards.
+.Pp
+.Nm 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.
.Pp
-Following tradition, the startup files
+.Nm Rc.firewall
+is used to configure rules for the kernel based firewall
+service. It has several possible options:
+.Pp
+.Bl -tag -width "fBfilename" -compact -offset indent
+.It open
+will allow anyone in.
+.It client
+will try to protect just this machine.
+.It simple
+will try to protect a whole network.
+.It closed
+totally disables IP services except via lo0 interface.
+.It UNKNOWN
+disables the loading of firewall rules.
+.It filename
+will load the rules in the given filename (full path required).
+.El
+.Pp
+.Nm Rc.<arch>
+runs architecture specific programs.
+.Pp
+.Nm Rc.local
+is executed after the scripts above, but before the rest of the
.Nm rc
-and
+file is completed.
+Presently, all
.Nm rc.local
-reside in
+does is to put version information in
+.Pa /etc/motd .
+.Pp
+Following tradition, the startup files reside in
.Pa /etc .
.Sh SEE ALSO
+.Xr rc.conf 5 ,
.Xr init 8 ,
.Xr reboot 8 ,
.Xr savecore 8
OpenPOWER on IntegriCloud