[0m


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



[1mNAME
     [0mrc - command script for auto-reboot and daemons

[1mSYNOPSIS
     /etc/rc
     /etc/rc.config
     /etc/rc.net
     /etc/rc.yp
     /etc/rc.X
     /etc/rc.local
     /etc/rc.exit

DESCRIPTION
     [0m_R_c is the command script which controls multi-user startup;
     _r_c._c_o_n_f_i_g, _r_c._n_e_t, _r_c._y_p, _r_c._X and _r_c._l_o_c_a_l are scripts
     which may be run by _r_c to initialise various classes of ser-
     vice, e.g. network daemons, X windows.

     The first task of _r_c is to decide whether or not to run
     _f_s_c_k(8) with the [1m-p [0moption to "preen" all the discs of minor
     inconsistencies resulting from the last system shutdown and
     to check for serious inconsistencies caused by hardware or
     software failure.

     The decision whether or not to run _f_s_c_k goes as follows:

     o+	  If the file _f_a_s_t_b_o_o_t exists in the root directory, then
	  the check is skipped.

     o+	  If /_f_a_s_t_b_o_o_t does not exist, but /_s_l_o_w_b_o_o_t does, then
	  the check is run.

     o+	  If neither _f_a_s_t_b_o_o_t nor _s_l_o_w_b_o_o_t exist, then _r_c will
	  run _f_s_c_k only if the system is being booted directly
	  into multi-user mode.

     If _f_s_c_k finds any problems, it will return an appropriate
     exit status to _r_c which will either _r_e_b_o_o_t(8) the system,
     or, if fsck could not automatically repair the damage, start
     a single-user shell by using _r_c._e_x_i_t to return an error
     status to _i_n_i_t(8).

     If _f_s_c_k succeeds, or is not run, _r_c mounts the filesystems
     listed in _f_s_t_a_b(5), preserves editor files, clears the
     scratch directory [1m/tmp[0m, and starts all the daemons required
     by the system.

     System configuration is controlled by _r_c._c_o_n_f_i_g, which
     defines the following variables:

     STANDALONE
	  A machine with STANDALONE set to TRUE will have no



Printed 21/11/91    Revision 1.4 of 06/11/90			1






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



	  network connections to the outside world; this over-
	  rides any explicit settings made for FULLNETWORK and
	  NIS, setting them both to FALSE.  If STANDALONE is
	  FALSE, then _r_c will run _r_c._n_e_t which defines the host-
	  name, and runs _i_f_c_o_n_f_i_g(8) for each network interface
	  present in the machine.

     FULLNETWORK
	  Setting FULLNETWORK to TRUE will enable the use of
	  networked file systems via NFS.

     NIS
	  NIS enables / disables the Network Information Service.
	  If TRUE, then _r_c will run _r_c._y_p to define the machine's
	  domainname and start up the NIS daemons.

     DISPLAYCONSOLELOG
	  If this variable is TRUE, then all messages sent to
	  /var/spool/console.log by _s_y_s_l_o_g_d(8) will be echoed to
	  /dev/console.

     Finally, _r_c runs the files _r_c._X and  _r_c._l_o_c_a_l to start up
     X11 and local services respectively.

[1mSEE ALSO
     [0mfstab(5), init(8), reboot(8), ifconfig(8), ypbind(8),
     ypserv(8), syslogd(8),
     RISCiX System Administrator's Guide,
     RISCiX X Windows System Administrator's Guide.

[1mBUGS





















[0mPrinted 21/11/91    Revision 1.4 of 06/11/90			2






[0m