68 lines
3.8 KiB
HTML
68 lines
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
|
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
|
<HEAD>
|
|
<TITLE>4.10.1 System startup files</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="4.10.1 System startup files">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html4168 HREF="node190.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4166 HREF="node188.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4160 HREF="node188.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4170 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4171 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4169 HREF="node190.html">4.10.2 Setting the hostname</A>
|
|
<B>Up:</B> <A NAME=tex2html4167 HREF="node188.html">4.10 Miscellaneous Tasks</A>
|
|
<B> Previous:</B> <A NAME=tex2html4161 HREF="node188.html">4.10 Miscellaneous Tasks</A>
|
|
<BR> <HR> <P>
|
|
<H2><A NAME=SECTION006101000000000000000>4.10.1 System startup files</A></H2>
|
|
<A NAME=secrc> </A>
|
|
<A NAME=5024> </A>
|
|
<A NAME=5025> </A>
|
|
When the system boots, a number of scripts are executed automatically
|
|
by the system before any user logs in. Here is a description of what
|
|
happens.
|
|
<P>
|
|
<A NAME=5085> </A>
|
|
<A NAME=5086> </A>
|
|
<A NAME=5087> </A>
|
|
<A NAME=5088> </A>
|
|
<A NAME=5089> </A>
|
|
<A NAME=5090> </A>
|
|
At bootup time, the kernel spawns the process <tt>/etc/init</tt>.
|
|
<tt>init</tt> is a program which reads its configuration file,
|
|
<tt>/etc/inittab</tt>, and spawns other processes based on the contents of
|
|
this file. One of the important processes started from <tt>inittab</tt>
|
|
is the <tt>/etc/getty</tt> process started on each virtual console.
|
|
The <tt>getty</tt> process grabs the VC for use, and starts a <tt>login</tt>
|
|
process on the VC. This allows you to login on each VC; if
|
|
<tt>/etc/inittab</tt> does not contain a <tt>getty</tt> process for a certain
|
|
VC, you will not be able to login on that VC.
|
|
<P>
|
|
<A NAME=5091> </A>
|
|
<A NAME=5092> </A>
|
|
<A NAME=5093> </A>
|
|
<A NAME=5094> </A>
|
|
Another process executed from <tt>/etc/inittab</tt> is <tt>/etc/rc</tt>,
|
|
the main system initialization file. This file is a simple shell
|
|
script which executes any initialization commands needed at boot time,
|
|
such as mounting the filesystems (see Section <A HREF="node184.html#secmanagefs">4.8</A>) and
|
|
initializing swap space.
|
|
<P>
|
|
Your system may execute other initialization scripts as well, such as
|
|
<tt>/etc/rc.local</tt>. <tt>/etc/rc.local</tt> usually contains initialization
|
|
commands specific to your own system, such as setting the hostname (see
|
|
the next section). <tt>rc.local</tt> may be started from <tt>/etc/rc</tt>
|
|
or from <tt>/etc/inittab</tt> directly.
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html4168 HREF="node190.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4166 HREF="node188.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4160 HREF="node188.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4170 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4171 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4169 HREF="node190.html">4.10.2 Setting the hostname</A>
|
|
<B>Up:</B> <A NAME=tex2html4167 HREF="node188.html">4.10 Miscellaneous Tasks</A>
|
|
<B> Previous:</B> <A NAME=tex2html4161 HREF="node188.html">4.10 Miscellaneous Tasks</A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|