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
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(7).
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/multi-user:default" executes each
36'S' script within /etc/rc2.d/ with the argument 'start'.  All start
37scripts in the directory /etc/rcS.d/ will have been run as part of the
38earlier single user milestone.  Any warnings, errors, or output from the
39scripts in /etc/rc2.d/ are logged to the file:
40
41/var/svc/log/milestone-multi-user:default.log
42
43If the system is changing from a higher run-level (for example, through
44an invocation of "init 2"), SMF executes all 'K' scripts within
45/etc/rc2.d/ with the argument 'stop'.  Any warnings, errors, or output
46from these scripts are logged to the file:
47
48/var/svc/log/rc2.log
49
50Scripts in /etc/rc2.d/ may assume the following:
51
52	Temporary directories have been cleaned as appropriate.
53
54	The system is a fully configured NFS client, and all NFS
55	file systems are mounted.  The name service, if any, is running.
56	The system logger is running.  Cron is running.
57
58For a full list of services brought online before scripts are run, see
59the output of "svcs -l svc:/milestone/multi-user:default".
60