Name Date Size

.. 2015-09-22 20:01:25 19

Makefile 2015-09-22 20:01:25 2.1 KiB

README 2005-06-14 09:00:00 3.2 KiB

README.rc2 2005-06-14 09:00:00 2.3 KiB

README.rc3 2005-06-14 09:00:00 2 KiB

README.rcS 2005-06-14 09:00:00 2.6 KiB

sysetup 2005-12-06 14:07:58 1.6 KiB

uucp 2005-06-14 09:00:00 1.1 KiB

README

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#ident "%Z%%M% %I% %E% SMI"
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTE: This directory contains legacy initialization and termination
scripts for managing services. The preferred method of service
management is via the Service Management Facility; to read more about
SMF, consult smf(5).
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
executing each script in one of the /etc/rc[S0-6] directories, the
/sbin/rc[S0-6] script passes a single argument. It passes the argument
'stop' for scripts prefixed with 'K' and the argument 'start' for
scripts prefixed with 'S'. There is no harm in applying the same
sequence number to multiple scripts. In this case the order of
execution is deterministic but unspecified. It is recommended that
scripts be hard-linked from the same file stored in /etc/init.d/.
On earlier Solaris releases, a script named with a suffix of '.sh' would
be sourced, allowing scripts to modify the environment of other scripts
executed later. This behavior is no longer supported; for altering the
environment in which services are run, refer to the SMF documentation.
Legacy services are reported by the default svcs(1m) output, and (where
appropriate) the utility's '-p' option. This reporting assumes a
behavior as described above, such that each 'S' script has a suitable
matching 'K' script, and they are both hard linked to a script in
/etc/init.d/. If this is not the case, legacy service reporting may not
operate accurately; under all circumstances, the scripts are always
executed as described above.
The run-levels operate as follows:
s/S
Read /etc/rcS.d/README for details. This run-level corresponds to
the milestone svc:/milestone/single-user:default.
0/5/6
All /etc/rc0.d/K* scripts are run, followed by all /etc/rc0.d/S*
scripts. The S* scripts should only be used for cleanup during
shutdown.
1
If the system was in a higher run-level, all /etc/rc1.d/K* scripts
are run. Regardless of the previous run-level, all /etc/rc1.d/S*
scripts are run.
2
Read /etc/rc2.d/README for details. This run-level corresponds to
the milestone svc:/milestone/multi-user:default.
3
Read /etc/rc3.d/README for details. This run-level corresponds to
the milestone svc:/milestone/multi-user-server:default.

README.rc2

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#ident "%Z%%M% %I% %E% SMI"
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTE: This directory contains legacy initialization and termination
scripts for managing services. The preferred method of service
management is via the Service Management Facility; to read more about
SMF, consult smf(5).
For a general discussion of the mechanism used to invoke these scripts
see the file /etc/init.d/README.
After all its dependencies have been satisfied, the start method of the
SMF major milestone "svc:/milestone/multi-user:default" executes each
'S' script within /etc/rc2.d/ with the argument 'start'. All start
scripts in the directory /etc/rcS.d/ will have been run as part of the
earlier single user milestone. Any warnings, errors, or output from the
scripts in /etc/rc2.d/ are logged to the file:
/var/svc/log/milestone-multi-user:default.log
If the system is changing from a higher run-level (for example, through
an invocation of "init 2"), SMF executes all 'K' scripts within
/etc/rc2.d/ with the argument 'stop'. Any warnings, errors, or output
from these scripts are logged to the file:
/var/svc/log/rc2.log
Scripts in /etc/rc2.d/ may assume the following:
Temporary directories have been cleaned as appropriate.
The system is a fully configured NFS client, and all NFS
file systems are mounted. The name service, if any, is running.
The system logger is running. Cron is running.
For a full list of services brought online before scripts are run, see
the output of "svcs -l svc:/milestone/multi-user:default".

README.rc3

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#ident "%Z%%M% %I% %E% SMI"
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTE: This directory contains legacy initialization and termination
scripts for managing services. The preferred method of service
management is via the Service Management Facility; to read more about
SMF, consult smf(5).
For a general discussion of the mechanism used to invoke these scripts
see the file /etc/init.d/README.
When moving to run-level 3, via an "init 3" invocation or the SMF major
milestone "svc:/milestone/multi-user-server:default", /sbin/rc3 executes
each 'K' script within /etc/rc3.d/ with the argument 'stop', followed by
each 'S' script within /etc/rc3.d/ with the argument 'start'. All
start scripts in the directories /etc/rcS.d/ and /etc/rc2.d/ will have
been run as part of the earlier major milestones. Any warnings, errors,
or output from the scripts in /etc/rc3.d/ are logged to the file:
/var/svc/log/milestone-multi-user-server:default.log
Scripts in /etc/rc3.d/ may assume the following:
The NFS server, if enabled, is running and shared NFS filesystems
are exported.
For a full list of services brought online before scripts are run, see
the output of "svcs -l svc:/milestone/multi-user-server:default".

README.rcS

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#ident "%Z%%M% %I% %E% SMI"
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTE: This directory contains legacy initialization and termination
scripts for managing services. The preferred method of service
management is via the Service Management Facility; to read more about
SMF, consult smf(5).
For a general discussion of the mechanism used to invoke these scripts
see the file /etc/init.d/README.
After all its dependencies have been satisfied, the start method of the
SMF major milestone "svc:/milestone/single-user:default" executes each
'S' script within /etc/rcS.d/ with the argument 'start'. Any warnings,
errors, or output from these scripts are logged to the file:
/var/svc/log/milestone-single-user:default.log
If the system is changing from a higher run-level (for example, through
an invocation of "init S"), SMF executes all 'K' scripts within
/etc/rcS.d/ with the argument 'stop'. Any warnings, errors, or output
from these scripts are logged to the file:
/var/svc/log/rcS.log
Scripts in /etc/rcS.d/ may assume the following:
Enough network plumbing has been done to NFS mount /usr/.
All system-supplied device file names have been established.
The environment variable _INIT_RECONFIG is set if this is
a reconfiguration boot.
The base system mounts have been performed, and the file
systems are read/write if so specified. These are:
/
/usr
/proc
/dev/fd
/tmp
/var
/var/adm
/var/run
/dev
/devices
/etc
For a full list of services brought online before scripts are run, see
the output of "svcs -l svc:/milestone/single-user:default".