command scripts for system startup
is the command script that is invoked by
when the system starts up.
It performs system housekeeping chores and starts up system daemons.
is intricately tied to the
script, which runs
commands and daemons pertaining to the network.
is also used to execute any
scripts defined in
scripts hold commands which are
pertinent only to a specific site.
All of these startup scripts are controlled to some extent by variables defined
, which specify
which daemons and services to run.
, it sets the process priority, umask,
and resource limits according to the “daemon” login class as
described in login.conf(5)
It then starts
and attempts to execute
the sequence of commands therein.
The first part of
to “preen” all disks of
minor inconsistencies resulting from the last system shutdown and to check for
serious inconsistencies caused by hardware or software failure. If this
auto-check and repair succeeds, then the second part of
is run. However, if the file
exists, fsck will not be invoked.
The file is then removed so that fsck will be run on subsequent boots.
The second part of
variables, mounts filesystems, saves
output to the file
, starts system daemons,
preserves editor files, clears the scratch directory
to save any
possible core image that might have been generated as a result of a system
crash, and relinks kernel objects in a random order.
If at any point the boot script fails,
enters single-user mode,
allowing the superuser a shell on the console. On exiting this mode, init
, but this time without
performing the file system preen.
starts most system daemons,
is executed by
to start daemons that must be run before
the security level changes. Following this,
then sets the security level to '1' if
it wasn't set already by
effects of setting the security level.
exists, it is executed once
and then deleted. Any output is mailed to root.
is executed towards the end of
(it is not the very last as there are a
few services that must be started at the very end). Normally,
contains commands and daemons that
are not part of the stock installation.
- Command script for network startup.
- Command scripts for system startup.
- System daemon configuration database.
- Site specific daemon configuration database.
- Directory to hold rc.d(8)
- Functions used by the rc.d(8)
- Commands run on the first boot after creation.
- Site specific command scripts for system startup.
- Commands run before the security level changes.
- Commands run at system shutdown.
rc not to run
fsck(8) during the next
- Copy of dmesg(8) saved by
rc at boot time.
command appeared in