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
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.
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]
22 #ident "%Z%%M% %I% %E% SMI"
23 Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 Use is subject to license terms.
26 NOTE: This directory contains legacy initialization and termination
27 scripts for managing services. The preferred method of service
28 management is via the Service Management Facility; to read more about
31 For a general discussion of the mechanism used to invoke these scripts
32 see the file /etc/init.d/README.
34 After all its dependencies have been satisfied, the start method of the
35 SMF major milestone "svc:/milestone/multi-user:default" executes each
36 'S' script within /etc/rc2.d/ with the argument 'start'. All start
37 scripts in the directory /etc/rcS.d/ will have been run as part of the
38 earlier single user milestone. Any warnings, errors, or output from the
39 scripts in /etc/rc2.d/ are logged to the file:
41 /var/svc/log/milestone-multi-user:default.log
43 If the system is changing from a higher run-level (for example, through
44 an invocation of "init 2"), SMF executes all 'K' scripts within
45 /etc/rc2.d/ with the argument 'stop'. Any warnings, errors, or output
46 from these scripts are logged to the file:
50 Scripts in /etc/rc2.d/ may assume the following:
52 Temporary directories have been cleaned as appropriate.
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.
58 For a full list of services brought online before scripts are run, see
59 the output of "svcs -l svc:/milestone/multi-user:default".