#
# |-----------------------------------------------------------|
# | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 252.227-7013.  |
# |         MIPS Computer Systems, Inc.                       |
# |         950 DeGuigne Avenue                               |
# |         Sunnyvale, California 94088-3650, USA             |
# |-----------------------------------------------------------|
#
# $Header: README,v 1.7.2.1 92/06/24 13:34:53 marker Exp $

/etc/init.d contains initialization and termination scripts
for changing init states.  These scripts are called when appropriate
by commands in the rc?.d directories.

The preferred method for making local modifications is to change
the file in rc?.d to execute a different script, or to have it
perform the local functions.  This way, a system update requires
less work in terms of deciding which files to keep and which to
change.

File names in rc?.d directories are of the form [SK]nn<init.d filename>
where 'S' means start this job, 'K' means kill this job, and 'nn' is
the relative sequence number for killing or starting the job.
When entering a state (init 0,2,3,etc.)
the rc[0-6] script executes those scripts in /etc/rc[0-6].d that are 
prefixed with 'K' followed by those scripts prefixed with 'S'.

EXAMPLE: When changing to init state 2 (default multi-user mode),
	/etc/rc2 is initiated by the init process. The following
	steps are performed by /etc/rc2.

	1. In the directory /etc/rc2.are files used to stop processes 
	that should not be running in state 2.  The filenames
	are prefixed with 'K'.  Each 'K'  file in the directory is
	executed (by /etc/rc2) in alpha-numeric order when the system 
	enters init state 2.  (see example under next item).

	2. Also in the rc2.d directory are files used to start
	processes that should be running in state 2.  As in the step
	above, each 'S' file is executed.

	Example:

		The file /etc/netdaemon is a script that will initiate
		networking daemons when given the argument 'start',
		and will terminate the daemons if given the argumant
		'stop'.  It is executed by /etc/rc2.d/S68netdaemon,
		and to /etc/rc0.d/K67netdaemon.  
		It file is executed by '/etc/rc2.d/S68netdaemon start'
		when init state 2 is entered and by
		'/etc/rc0.d/S67netdaemon stop' when shutting the 
		system down.
