Merge commit 'b1e7e97d3b60469b243b3b2e22c7d8cbd11c7c90'
[unleashed.git] / usr / src / cmd / initpkg / init.d / README.rc3
blobcb3f9a13777ed60cb15b8bfedf2788d97103401f
2 # CDDL HEADER START
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.
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]
20 # CDDL HEADER END
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
29 SMF, consult smf(5).
31 For a general discussion of the mechanism used to invoke these scripts
32 see the file /etc/init.d/README.
34 When moving to run-level 3, via an "init 3" invocation or the SMF major
35 milestone "svc:/milestone/multi-user-server:default", /sbin/rc3 executes
36 each 'K' script within /etc/rc3.d/ with the argument 'stop', followed by
37 each 'S' script within /etc/rc3.d/ with the argument 'start'.   All
38 start scripts in the directories /etc/rcS.d/ and /etc/rc2.d/ will have
39 been run as part of the earlier major milestones.  Any warnings, errors,
40 or output from the scripts in /etc/rc3.d/ are logged to the file:
42 /var/svc/log/milestone-multi-user-server:default.log
44 Scripts in /etc/rc3.d/ may assume the following:
46         The NFS server, if enabled, is running and shared NFS filesystems
47         are exported.
49 For a full list of services brought online before scripts are run, see
50 the output of "svcs -l svc:/milestone/multi-user-server:default".