OSDN Git Service

f9ea0cd108c7585f6b9d9ac2f0fbbdacbecde765
[linuxjf/JF.git] / docs / LFS-BOOK / scripts / apds19.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.19. /etc/rc.d/init.d/reboot
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="apds18.html" title=
25           "/etc/rc.d/init.d/sendsignals">前のページ</a>
26           <p>
27             /etc/rc.d/init.d/sendsignals
28           </p>
29         </li>
30         <li class="next">
31           <a accesskey="n" href="apds20.html" title=
32           "/etc/rc.d/init.d/halt">次のページ</a>
33           <p>
34             /etc/rc.d/init.d/halt
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="rebootscript" name="rebootscript"></a>D.19.
50         /etc/rc.d/init.d/reboot
51       </h1>
52       <pre class="screen">
53 #!/bin/sh
54 ########################################################################
55 # Begin $rc_base/init.d/reboot
56 #
57 # Description : Reboot Scripts
58 #
59 # Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
60 #
61 # Version     : 00.00
62 #
63 # Notes       :
64 #
65 ########################################################################
66
67 . /etc/sysconfig/rc
68 . ${rc_functions}
69
70 case "${1}" in
71     stop)
72         boot_mesg "Restarting system..."
73         reboot -d -f -i
74         ;;
75
76     *)
77         echo "Usage: ${0} {stop}"
78         exit 1
79         ;;
80
81 esac
82
83 # End $rc_base/init.d/reboot
84 </pre>
85     </div>
86     <div class="navfooter">
87       <ul>
88         <li class="prev">
89           <a accesskey="p" href="apds18.html" title=
90           "/etc/rc.d/init.d/sendsignals">前のページ</a>
91           <p>
92             /etc/rc.d/init.d/sendsignals
93           </p>
94         </li>
95         <li class="next">
96           <a accesskey="n" href="apds20.html" title=
97           "/etc/rc.d/init.d/halt">次のページ</a>
98           <p>
99             /etc/rc.d/init.d/halt
100           </p>
101         </li>
102         <li class="up">
103           <a accesskey="u" href="scripts.html" title=
104           "付録 D. ブートスクリプトと sysconfig スクリプト version-20100627">上に戻る</a>
105         </li>
106         <li class="home">
107           <a accesskey="h" href="../index.html" title=
108           "Linux From Scratch - Version 6.8">ホーム</a>
109         </li>
110       </ul>
111     </div>
112   </body>
113 </html>