OSDN Git Service

Update to 3.8
[linuxjf/JF.git] / docs / LFS-BOOK / scripts / apds20.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4   <head>
5     <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
6     <title>
7       D.20. /etc/rc.d/init.d/halt
8     </title>
9     <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
10     <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
11     <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
12     "text/css" media="print" />
13   </head>
14   <body class="lfs" id="lfs-6.8">
15     <div class="navheader">
16       <h4>
17         Linux From Scratch - Version 6.8
18       </h4>
19       <h3>
20         付録 D. ブートスクリプトと sysconfig スクリプト version-20100627
21       </h3>
22       <ul>
23         <li class="prev">
24           <a accesskey="p" href="apds19.html" title=
25           "/etc/rc.d/init.d/reboot">前のページ</a>
26           <p>
27             /etc/rc.d/init.d/reboot
28           </p>
29         </li>
30         <li class="next">
31           <a accesskey="n" href="apds21.html" title=
32           "/etc/rc.d/init.d/template">次のページ</a>
33           <p>
34             /etc/rc.d/init.d/template
35           </p>
36         </li>
37         <li class="up">
38           <a accesskey="u" href="scripts.html" title=
39           "付録 D. ブートスクリプトと sysconfig スクリプト version-20100627">上に戻る</a>
40         </li>
41         <li class="home">
42           <a accesskey="h" href="../index.html" title=
43           "Linux From Scratch - Version 6.8">ホーム</a>
44         </li>
45       </ul>
46     </div>
47     <div class="wrap" lang="ja" xml:lang="ja">
48       <h1 class="sect1">
49         <a id="haltscript" name="haltscript"></a>D.20. /etc/rc.d/init.d/halt
50       </h1>
51       <pre class="screen">
52 #!/bin/sh
53 ########################################################################
54 # Begin $rc_base/init.d/halt
55 #
56 # Description : Halt Script
57 #
58 # Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
59 #
60 # Version     : 00.00
61 #
62 # Notes       :
63 #
64 ########################################################################
65
66 . /etc/sysconfig/rc
67 . ${rc_functions}
68
69 case "${1}" in
70     stop)
71         halt -d -f -i -p
72         ;;
73     *)
74         echo "Usage: {stop}"
75         exit 1
76         ;;
77 esac
78
79 # End $rc_base/init.d/halt
80 </pre>
81     </div>
82     <div class="navfooter">
83       <ul>
84         <li class="prev">
85           <a accesskey="p" href="apds19.html" title=
86           "/etc/rc.d/init.d/reboot">前のページ</a>
87           <p>
88             /etc/rc.d/init.d/reboot
89           </p>
90         </li>
91         <li class="next">
92           <a accesskey="n" href="apds21.html" title=
93           "/etc/rc.d/init.d/template">次のページ</a>
94           <p>
95             /etc/rc.d/init.d/template
96           </p>
97         </li>
98         <li class="up">
99           <a accesskey="u" href="scripts.html" title=
100           "付録 D. ブートスクリプトと sysconfig スクリプト version-20100627">上に戻る</a>
101         </li>
102         <li class="home">
103           <a accesskey="h" href="../index.html" title=
104           "Linux From Scratch - Version 6.8">ホーム</a>
105         </li>
106       </ul>
107     </div>
108   </body>
109 </html>