From owner-doc-jp@jp.freebsd.org  Fri Mar 10 19:49:59 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id TAA26315;
	Fri, 10 Mar 2000 19:49:59 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from thumb.nail.or.jp (ppp160.dialup.st.keio.ac.jp [131.113.27.160])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id TAA26310
	for <doc-jp@jp.freebsd.org>; Fri, 10 Mar 2000 19:49:57 +0900 (JST)
	(envelope-from dui@360.cc)
Received: from localhost (localhost.nail.or.jp [127.0.0.1])
	by thumb.nail.or.jp (8.9.3/8.9.3) with ESMTP id TAA00701
	for <doc-jp@jp.freebsd.org>; Fri, 10 Mar 2000 19:49:43 +0900 (JST)
	(envelope-from dui@360.cc)
To: doc-jp@jp.freebsd.org
In-Reply-To: Your message of "Thu, 09 Mar 2000 00:24:35 +0900"
	<200003081607.BAA22656@mail.geocities.co.jp>
References: <200003081607.BAA22656@mail.geocities.co.jp>
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20000310194943U.dui@360.cc>
Date: Fri, 10 Mar 2000 19:49:43 +0900
From: Naoto Kaneko <dui@360.cc>
X-Dispatcher: imput version 980905(IM100)
Lines: 181
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 7155
Subject: [doc-jp 7155] Re: books/handbook/internals/chapter.sgml #6
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: dui@360.cc

$B6b;R$G$9!#(B

$B$3$l$G$*$7$^$$$G$9!#(B
$BE,Ev$G$J$$Lu$N?t!9$G$7$g$&$,!"::FI$h$m$7$/$*$M$,$$$7$^$9!#(B

From: Hiroki Sato <hrs@geocities.co.jp>
Subject: [doc-jp 7146] books/handbook/internals/chapter.sgml #6
Date: Thu, 09 Mar 2000 00:24:35 +0900
Message-ID: <200003081607.BAA22656@mail.geocities.co.jp>

> (books/handbook/internals/chapter.sgml 1.15 -> 1.16 #6)
> 
>       <sect3 id="boot-singleuser">
> 	<title>Single-user mode</title>
> 	
> 	<para>This mode can be reached through the <link
> 	    linkend="boot-autoreboot">automatic reboot
> 	    sequence</link>, or by the user booting with the
> 	  <option>-s</option> or setting the
> 	  <envar>boot_single</envar> variable in
> 	  <command>loader</command>.</para>
> 
> 	<para>It can also be reached by calling
> 	  <command>shutdown</command> without the reboot
> 	  (<option>-r</option>) or halt (<option>-h</option>) options,
> 	  from <link linkend="boot-multiuser">multi-user
> 	    mode</link>.</para>
> 
> 	<para>If the system console <literal>console</literal> is set
> 	  to <literal>insecure</literal> in
> 	  <filename>/etc/ttys</filename>, then the system prompts for
> 	  the root password before initiating single-user mode.</para>
> 
> 	<example id="boot-insecure-console">
> 	  <title>An insecure console in /etc/ttys</title>
> 
> 	  <programlisting># name  getty                           type    status          comments
> #
> # This entry needed for asking password when init goes to single-user mode
> # If you want to be asked for password, change "secure" to "insecure" here
> console none                            unknown off insecure</programlisting>
> 	</example>
> 
> 	<note>
> 	  <para>An <literal>insecure</literal> console means that you
> 	    consider your physical security to the console to be
> 	    insecure, and want to make sure only someone who knows the
> 	    root password may use single-user mode, and it does not
> 	    mean that you want to run your console insecurely.  Thus,
> 	    if you want security, choose <literal>insecure</literal>,
> 	    not <literal>secure</literal>.</para>
> 	</note>
>       </sect3>
>       
>       <sect3 id="boot-multiuser">
> 	<title>Multi-user mode</title>
> 	
> 	<para>If <command>init</command> finds your filesystems to be
> 	  in order, or once the user has finished in <link
> 	    linkend="boot-singleuser">single-user mode</link>, the
> 	  system enters multi-user mode, in which it starts the
> 	  resource configuration of the system.</para>
> 
> 	<sect4 id="boot-rc">
> 	  <title>Resource configuration (rc)</title>
> 
> 	  <para>The resource configuration system reads in
> 	    configuration defaults from
> 	    <filename>/etc/defaults/rc.conf</filename>, and
> 	    system-specific details from
> 	    <filename>/etc/rc.conf</filename>, and then proceeds to
> 	    mount the system filesystems mentioned in
> 	    <filename>/etc/fstab</filename>, start up networking
> 	    services, starts up miscellaneous system daemons, and
> 	    finally runs the startup scripts of locally installed
> 	    packages.</para>
> 
> 	  <para>&man.rc.8; is a good reference to the resource
> 	    configuaration system, as is examining the scripts
> 	    themselves.</para>
> 	</sect4>
>       </sect3>
>     </sect2>
> 
>     <sect2 id="boot-shutdown">
>       <title>Shutdown sequence</title>
> 
>       <para>Upon controlled shutdown, via <command>shutdown</command>,
> 	<command>init</command> will attempt to run the script
> 	<filename>/etc/rc.shutdown</filename>, and then proceed to send
> 	all processes the terminate signal, and subsequently the kill
> 	signal to any that don't terminate timely.</para>
>     </sect2>

(books/handbook/internals/chapter.sgml 1.15 -> 1.16 #6)

      <sect3 id="boot-singleuser">
	<title>$B%7%s%0%k%f!<%6%b!<%I(B</title>
	
	<para>$B$3$N%b!<%I$O(B<link linkend="boot-autoreboot">$B0lO"$N<+F0%j(B
	$B%V!<%HF0:n(B</link>, $B$b$7$/$O%f!<%6$,(B<option>-s</option>$B$r;XDj$7(B
	$B$F%V!<%H$9$k$+(B<command>loader</command>$B$G(B
	<envar>boot_single</envar>$BJQ?t$r@_Dj$9$k$3$H$K$h$C$FE~C#$5$l$^(B
	$B$9(B. </para>

	<para><link linkend="boot-multiuser">$B%^%k%A%f!<%6%b!<%I(B</link>
	$B$+$i(B<command>shutdown</command>$B$r%j%V!<%H%*%W%7%g%s(B
	(<option>-r</option>)$B$+(Bhalt (<option>-h</option>)$B$J$7$G8F$S=P(B
	$B$9$3$H$K$h$C$F$bE~C#$5$l$^$9(B. </para>

	<para><filename>/etc/ttys</filename>$B$G%7%9%F%`%3%s%=!<%k(B
	<literal>console</literal>$B$,(B<literal>insecure</literal>$B$K@_Dj(B
	$B$5$l$F$$$l$P(B, $B%7%9%F%`$O%7%s%0%k%f!<%6%b!<%I$r;O$a$kA0$K(Broot$B%Q(B
	$B%9%o!<%I$NF~NO$r5a$a$^$9(B. </para>

	<example id="boot-insecure-console">
	  <title>/etc/ttys$B$N(Binsecure$B%3%s%=!<%k(B</title>

	  <programlisting># name  getty                           type    status          comments
#
# $B$3$N%(%s%H%j$O(Binit$B$,%7%s%0%k%f!<%6%b!<%I$X0\9T$9$k:]$K%Q%9%o!<%I$rMW(B
# $B5a$5$;$k$?$a$KI,MW$G$9(B. $B$b$7(B, $B%Q%9%o!<%I$NMW5a$rK>$`$J$i$P(B"secure"$B$r(B
# "insecure"$B$X$H$3$3$GJQ99$7$F$/$@$5$$(B. 
console none                            unknown off insecure</programlisting>
	</example>

	<note>
	  <para><literal>insecure</literal>$B%3%s%=!<%k$H$O%3%s%=!<%k$,(B
	  $BJ*M}E*$K0BA4$G$J$$$H8+$J$5$l(B, root$B%Q%9%o!<%I$rCN$kC/$+$N$_$,(B
	  $B%7%s%0%k%f!<%6%b!<%I$r;H$($k;v$r3NG'$7$?$$$H$$$&0UL#$G$"$j(B, 
	  $B%3%s%=!<%k$r0BA4$G$J$$>uBV$G;H$$$?$$$H$$$&0UL#$G$O$"$j$^$;$s(B. 
	  $B$h$C$F(B, $B0BA4@-$r5a$a$k$J$i$P(B<literal>secure</literal>$B$G$J$/(B
	  <literal>insecure</literal>$B$rA*$s$G$/$@$5$$(B. </para>
	</note>
      </sect3>
      
      <sect3 id="boot-multiuser">
	<title>$B%^%k%A%f!<%6%b!<%I(B</title>
	
	<para><command>init</command>$B$,%U%!%$%k%7%9%F%`$,@5>o$G$"$k$H(B
	$BH=CG$9$k$+(B, $B%f!<%6$,(B<link linkend="boot-singleuser">$B%7%s%0%k%f!<(B
	$B%6%b!<%I(B</link>$B$r=*N;$7$?$J$i$P(B, $B%7%9%F%`$O%^%k%A%f!<%6%b!<%I(B
	$B$X0\9T$7(B, $B%j%=!<%9$N@_Dj$r;O$a$^$9(B. </para>

	<sect4 id="boot-rc">
	  <title>$B%j%=!<%9@_Dj(B(rc)</title>

	  <para>$B%j%=!<%9@_Dj%7%9%F%`$O%G%U%)%k%H@_Dj$r(B
	  <filename>/etc/defaults/rc.conf</filename>$B$+$i(B, $B%7%9%F%`FH<+(B
	  $B$N>\:Y$r(B<filename>/etc/rc.conf</filename>$B$+$iFI$_9~$_(B,
	  <filename>/etc/fstab</filename>$B$K5-=R$5$l$k%7%9%F%`%U%!%$%k(B
	  $B%7%9%F%`$N%^%&%s%H(B, $B%M%C%H%o!<%/%5!<%S%9$N3+;O(B, $BMM!9$J%7%9%F(B
	  $B%`%G!<%b%s$N3+;O(B, $B$=$7$F:G8e$K%m!<%+%k$K%$%s%9%H!<%k$5$l$?%Q%C(B
	  $B%1!<%8$N5/F0%9%/%j%W%H$N<B9T$X$H?J$_$^$9(B. </para>

	  <para>&man.rc.8; $B$O%9%/%j%W%H$=$N$b$N$K$D$$$F8!F$$9$k$3$H$+(B
	  $B$i%j%=!<%9@_Dj%7%9%F%`$NNI$$;29M;qNA$H$J$C$F$$$^$9(B. </para>
	</sect4>
      </sect3>
    </sect2>

    <sect2 id="boot-shutdown">
      <title>$B0lO"$N%7%c%C%H%@%&%sF0:n(B</title>

      <para><command>shutdown</command>$B$+$i$N@)8f$5$l$?%7%c%C%H%@%&%s(B
      $B$G$O(B, <command>init</command>$B$,%9%/%j%W%H(B
      <filename>/etc/rc.shutdown</filename>$B$N<B9T$r;n$_$^$9(B. $B$=$7$F(B, 
      $BA4$F$N%W%m%;%9$X(Bterminate$B%7%0%J%k$rAw$j(B, $BB3$$$F@^$j$h$/=*N;$G$-(B
      $B$J$+$C$?%W%m%;%9$X(Bkill$B%7%0%J%k$rAw$j$^$9(B. </para>
    </sect2>

                             /* $B6b;R(B $BD>?M(B
				$B7D1~Bg3XM}9)3XIt>pJs9)3X2J(B3$BG/8uJd(B 
				dui@360.cc */







