4.3BSD-UWisc/man/cat8/rc.8

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




RC(8)               UNIX Programmer's Manual                RC(8)



NAME
     rc - command script for auto-reboot and daemons

SYNOPSIS
     /etc/rc
     /etc/rc.local

DESCRIPTION
     _R_c is the command script which controls the automatic reboot
     and _r_c._l_o_c_a_l is the script holding commands which are per-
     tinent only to a specific site.

     When an automatic reboot is in progress, _r_c is invoked with
     the argument _a_u_t_o_b_o_o_t and runs a _f_s_c_k 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 hardware or software failure.  If
     this auto-check and repair succeeds, then the second part of
     _r_c is run.

     The second part of _r_c, which is run after a auto-reboot
     succeeds and also if _r_c is invoked when a single user shell
     terminates (see _i_n_i_t(8)), starts all the daemons on the sys-
     tem, preserves editor files and clears the scratch directory
     /tmp. _R_c._l_o_c_a_l is executed immediately before any other com-
     mands after a successful _f_s_c_k.  Normally, the first commands
     placed in the _r_c._l_o_c_a_l file define the machine's name, using
     _h_o_s_t_n_a_m_e(1), and save any possible core image that might
     have been generated as a result of a system crash,
     _s_a_v_e_c_o_r_e(8).  The latter command is included in the _r_c._l_o_c_a_l
     file because the directory in which core dumps are saved is
     usually site specific.

SEE ALSO
     init(8), reboot(8), savecore(8)

BUGS















Printed 12/27/86         April 27, 1985                         1