BSD 4_3 release
[unix-history] / usr / man / man8 / rc.8
index 60bd2fe..94fe516 100644 (file)
@@ -1,12 +1,23 @@
-.TH RC 8
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)rc.8        6.1 (Berkeley) 4/27/85
+.\"
+.TH RC 8 "April 27, 1985"
 .UC 4
 .SH NAME
 rc \- command script for auto-reboot and daemons
 .SH SYNOPSIS
 .B /etc/rc
 .UC 4
 .SH NAME
 rc \- command script for auto-reboot and daemons
 .SH SYNOPSIS
 .B /etc/rc
+.br
+.B /etc/rc.local
 .SH DESCRIPTION
 .I Rc
 .SH DESCRIPTION
 .I Rc
-is the command script which controls the automatic reboot
+is the command script which controls the automatic reboot and
+.I rc.local
+is the script holding commands which are pertinent only
+to a specific site.
 .PP
 When an automatic reboot is in progress,
 .I rc
 .PP
 When an automatic reboot is in progress,
 .I rc
@@ -32,10 +43,22 @@ is invoked when a single user shell terminates (see
 starts all the daemons on the system, preserves editor files
 and clears the scratch directory
 .B /tmp.
 starts all the daemons on the system, preserves editor files
 and clears the scratch directory
 .B /tmp.
+.I Rc.local
+is executed immediately before any other commands after a successful
+.IR fsck .
+Normally, the first commands placed in the
+.I rc.local
+file define the machine's name, using
+.IR hostname (1),
+and save any possible core image that might have been
+generated as a result of a system crash,
+.IR savecore (8).
+The latter command is included in the
+.I rc.local
+file because the directory in which core dumps are saved
+is usually site specific.
 .SH SEE ALSO
 .SH SEE ALSO
-init(8), reboot(8)
+init(8),
+reboot(8),
+savecore(8)
 .SH BUGS
 .SH BUGS
-After making changes to the root file system,
-the system must be rebooted to keep the incore copy of the super-block
-from corrupting the newly computed super-block.  This is silly.
-The system should be fixed so that this super-block is updated in core.