From owner-doc-jp@jp.freebsd.org  Wed Sep 18 19:31:36 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id TAA01163
	Wed, 18 Sep 1996 19:31:36 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with ESMTP id TAA01158
	for <doc-jp@jp.freebsd.org>; Wed, 18 Sep 1996 19:31:34 +0900 (JST)
Received: from komachi (ninigi.phys.s.u-tokyo.ac.jp [133.11.4.252]) by komachi.phys.s.u-tokyo.ac.jp (8.7.5/3.4W5-96060512) with ESMTP id SAA18100; Wed, 18 Sep 1996 18:36:59 +0859 (JST)
Message-Id: <199609180937.SAA18100@komachi.phys.s.u-tokyo.ac.jp>
To: nakai@mlab.t.u-tokyo.ac.jp, doc-jp@jp.freebsd.org
cc: skimu@cms.phys.s.u-tokyo.ac.jp
Mime-Version: 1.0 (generated by tm-edit 7.63)
Content-Type: text/plain; charset=ISO-2022-JP
Date: Wed, 18 Sep 1996 18:37:13 +0900
From: Shigenobu Kimura <skimu@cms.phys.s.u-tokyo.ac.jp>
Reply-To: doc-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: doc-jp 1156
Subject: [doc-jp 1156] FreeBSD Handbook
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org

$B:#F|$O(B FreeBSD handbook $B$N:n6H$46lO+MM$G$9(B & $B<h$j$"$($:$N40@.(B
$B$*$a$G$H$&$4$6$$$^$9(B.

www.jp.freebsd.org $B$GFI$^$;$F$b$i$C$?$N$G$9$,(B, 22 $B>O$NE:IU$7$?ItJ,(B
$BIU6a$N=PMh$,M>$jNI$/$J$$$h$&$G$9(B.
$B$3$N$"$?$j$N8+D>$7$O;O$^$C$F$$$k$N$G$7$g$&$+(B?
$B<h$j$"$($:(B 22.1.3 $B$rD>$7$F$_$^$7$?(B. $B%,%$%I%i%$%s$rFI$s$G(B
$B:#HU$3$l$r4^$a$F$N<~JU$r8+D>$=$&$H;W$&$N$G$9$,(B, 
$B;d$NEXNO$OJs$o$l$^$9$G$7$g$&$+(B?
$B$40U8+$/$@$5$$(B.

22.1.3. Initialize user-land things
To get the user-land going, when the kernel has finished
initialization, it will create a process with ``pid == 1'' and execute
a program on the root filesystem, this program is normally
``/sbin/init''.
You can substitute any program for /sbin/init, as long as you keep in
mind that:
there is no stdin/out/err unless you open it yourself, if you exit,
the machine panics, signal handling is special for ``pid == 1''.

An example of this is the ``/stand/sysinstall'' program on the
installation floppy.

22.1.3  $B%f!<%6$N@$3&$r=i4|2=$9$k(B

$B%+!<%M%k$O<+J,$N=i4|2=$r=*N;$7$?$i(B, $B%f!<%6!<$N@$3&$rAO@$$9$k$?$a$K(B,
``pid == 1'' $B$N%W%m%;%9$r$D$/$j(B, $B%k!<%H%U%!%$%k%7%9%F%`$KCV$+$l$F$$$k(B
$B$"$k%W%m%0%i%`$r<B9T$7$^$9(B. $B$=$l$O%W%m%0%i%`$ODL>o(B ``/sbin/init'' $B$G$9(B.

$B0J2<$N$3$H$KCm0U$7$F$$$k8B$j(B /sbin/init $B$rJL$J$b$N$KCV$-49$($k$3$H$b(B
$B2DG=$G$9(B:

/sbin/init $B$KBX$o$k%W%m%0%i%`$G$OI8=`F~=PNO(B/$B%(%i!<=PNO(B(stdin/out/err)
$B$r<+J,$G(B open $B$7$J$/$F$O$J$j$^$;$s(B.
$B$^$?(B, $B$=$N%W%m%0%i%`$,=*N;$9$k$H%7%9%F%`$O%Q%K%C%/$7$^$9(B,
``pid == 1'' $B$N%W%m%;%9$K4X$7$F$O$,%7%0%J%k$N<h07$,FCJL$J$N$G$9(B.

$B$3$NCV$-49$($N0lNc$H$7$F(B, $B%$%s%9%H!<%k%U%m%C%T!<$N(B 
``/stand/sysinstall'' $B$,$"$j$^$9(B.


