4.4BSD/usr/share/man/cat8/rc.0

Compare this file to the similar file:
Show the results in this format:

RC(8)                     BSD System Manager's Manual                    RC(8)

NNAAMMEE
     rrcc - command script for auto-reboot and daemons

SSYYNNOOPPSSIISS
     rrcc
     rrcc..llooccaall

DDEESSCCRRIIPPTTIIOONN
     RRcc is the command script which controls the automatic reboot and rrcc..llooccaall
     is the script holding commands which are pertinent only to a specific
     site.

     When an automatic reboot is in progress, rrcc is invoked with the argument
     _a_u_t_o_b_o_o_t. The first portion of rrcc runs an fsck(8) with option --pp 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 rrcc is run.

     The second part of rrcc, which is run after a auto-reboot succeeds and also
     if rrcc 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 _/_t_m_p.

     RRcc..llooccaall is executed immediately before any other commands after a suc-
     cessful fsck.  Normally, the first commands placed in the rrcc..llooccaall file
     define the machine's name, using hostname(1),  and save any possible core
     image that might have been generated as a result of a system crash, with
     savecore(8).  The latter command is included in the rrcc..llooccaall file because
     the directory in which core dumps are saved is usually site specific.

     Following tradition, the startup files rrcc and rrcc..llooccaall reside in _/_e_t_c.

SSEEEE AALLSSOO
     init(8),  reboot(8),  savecore(8)

HHIISSTTOORRYY
     The rrcc command appeared in 4.0BSD.

4th Berkeley Distribution        June 5, 1993                                1