run commands performed for multi-user environment
This file is executed via an entry in
and is responsible for those initializations
that bring the system to a ready-to-use state,
traditionally state 2, called the ``multi-user'' state.
The actions performed by
are found in files in the directory
and files beginning with ``S'' in /etc/rc2.d.
These files are executed by
in ASCII sort-sequence order.
When functions are added that need to be initialized when the
system goes multi-user, an appropriate file should be added in
The functions done by
command and associated
Other functions can be added, as required, to support the
addition of hardware and software features.
Setting and exporting the TIMEZONE variable.
Cleaning up (remaking) the
Loading the network interface and ports cards with program
data and starting the associated processes.
daemon by executing
Cleaning up (deleting) uucp locks
status, and temporary files in the
Here are some hints about files in
The order in which files are executed is important.
Since they are executed in ASCII sort-sequence order,
using the first character of the filename as a sequence
indicator will help keep the proper order.
Thus, files starting with the following characters would be:
that begin with a dot (.)
will not be executed.
This feature can be used to hide files that are
not to be executed for the time being without removing them.
The command can be used only by a privileged user.
must begin with an
followed by a number and the rest of the filename.
Upon entering run level 2,
files beginning with
are executed with the
option; files beginning with
are executed with the
Files beginning with other characters are ignored.
The following are prototypical files found in
In a real installation, these filenames would be prefixed with an
and a number indicating the execution order
of the files.
is included early in
thus establishing the default time zone for all commands that follow.
# Set up and mount filesystems
# clean up /tmp
rm -rf /tmp
mkdir -m /tmp
chmod 1777 /tmp
chgrp bin /tmp
chown bin /tmp
# clean-up uucp locks, status, and temporary files
rm -rf /usr/spool/locks/*
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004