xref: /titanic_41/usr/src/cmd/initpkg/init.d/README.rcS (revision c138f478d2bc94e73ab8f6a084e323bec25e62f5)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#ident	"%Z%%M%	%I%	%E% SMI"
23Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24Use is subject to license terms.
25
26NOTE: This directory contains legacy initialization and termination
27scripts for managing services.  The preferred method of service
28management is via the Service Management Facility; to read more about
29SMF, consult smf(5).
30
31For a general discussion of the mechanism used to invoke these scripts
32see the file /etc/init.d/README.
33
34After all its dependencies have been satisfied, the start method of the
35SMF major milestone "svc:/milestone/single-user:default" executes each
36'S' script within /etc/rcS.d/ with the argument 'start'.  Any warnings,
37errors, or output from these scripts are logged to the file:
38
39/var/svc/log/milestone-single-user:default.log
40
41If the system is changing from a higher run-level (for example, through
42an invocation of "init S"), SMF executes all 'K' scripts within
43/etc/rcS.d/ with the argument 'stop'. Any warnings, errors, or output
44from these scripts are logged to the file:
45
46/var/svc/log/rcS.log
47
48Scripts in /etc/rcS.d/ may assume the following:
49
50	Enough network plumbing has been done to NFS mount /usr/.
51
52	All system-supplied device file names have been established.
53
54	The environment variable _INIT_RECONFIG is set if this is
55	a reconfiguration boot.
56
57	The base system mounts have been performed, and the file
58	systems are read/write if so specified.  These are:
59
60                /
61                /usr
62                /proc
63                /dev/fd
64                /tmp
65                /var
66                /var/adm
67                /var/run
68                /dev
69                /devices
70                /etc
71
72For a full list of services brought online before scripts are run, see
73the output of "svcs -l svc:/milestone/single-user:default".
74