summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/Invisible/sag-0.6/node9.html
blob: 255e964a4ee36bf32d1aed6f9abd2009bb64a4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>init</TITLE>
<META NAME="description" CONTENT="init">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css">
</HEAD>
<BODY LANG="EN" >
 <A NAME="tex2html409" HREF="node10.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html407" HREF="node8.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html401" HREF="node8.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html411" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html412" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html410" HREF="node10.html">Logins from terminals</A>
<B>Up:</B> <A NAME="tex2html408" HREF="node8.html">Major services in a </A>
<B> Previous:</B> <A NAME="tex2html402" HREF="node8.html">Major services in a </A>
<BR> <P>
<A NAME="308">&#160;</A><H2><A NAME="SECTION00331000000000000000"><tt>init</tt></A></H2>
<P>
	The single most important service in a UNIX system is provided
	by <tt>init</tt><A NAME="310">&#160;</A>.  <tt>init</tt><A NAME="312">&#160;</A> is started as the first process of
	every UNIX system, as the last thing the kernel does when it
	boots.  When <tt>init</tt><A NAME="314">&#160;</A> starts, it continues the boot process
	by doing various startup chores (checking and mounting filesystems,
	starting daemons, etc).
<A NAME="166">&#160;</A>
<A NAME="167">&#160;</A>
<A NAME="168">&#160;</A>
<P>
	The exact list of things that <tt>init</tt><A NAME="316">&#160;</A>
	does depends on which flavor it is; there are several to choose
	from.  <tt>init</tt><A NAME="318">&#160;</A>
	usually provides the concept of <b>single user mode</b>, in which
	no one can log in and <tt>root</tt><A NAME="321">&#160;</A> uses a shell at the console; the usual
	mode is called <b>multiuser mode</b>.
	Some flavors generalize this as <b>run levels</b>; single and
	multiuser modes are considered to be two run levels, and there
	can be additional ones as well, for example, to run X on the
	console.
<A NAME="175">&#160;</A>
<A NAME="176">&#160;</A>
<A NAME="177">&#160;</A>
<A NAME="178">&#160;</A>
<P>
	In normal operation, <tt>init</tt><A NAME="325">&#160;</A> makes sure <tt>getty</tt><A NAME="327">&#160;</A>s are
	working (to allow users to log in), and to
	adopt orphan processes (processes whose parent has died; in
	UNIX <em>all</em> processes <em>must</em> be in a single tree,
	so orphans must be adopted).
<P>
	When the system is shut down, it is <tt>init</tt><A NAME="329">&#160;</A> that is in charge
	of killing all
	other processes, unmounting all filesystems and stopping the processor,
	along with anything else it has been configured to do.
<A NAME="184">&#160;</A>
<A NAME="185">&#160;</A>
<A NAME="186">&#160;</A>
<P>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>