OSDN Git Service

Update to lfsbook 7.2.ja
[linuxjf/JF.git] / docs / LFS-BOOK / scripts / apds21.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.21. /etc/rc.d/init.d/template
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-7.2">
15     <div class="navheader">
16       <h4>
17         Linux From Scratch - Version 7.2
18       </h4>
19       <h3>
20         付録 D. ブートスクリプトと sysconfig スクリプト version-20120901
21       </h3>
22       <ul>
23         <li class="prev">
24           <a accesskey="p" href="apds20.html" title=
25           "/etc/rc.d/init.d/halt">前のページ</a>
26           <p>
27             /etc/rc.d/init.d/halt
28           </p>
29         </li>
30         <li class="next">
31           <a accesskey="n" href="apds22.html" title=
32           "/etc/sysconfig/modules">次のページ</a>
33           <p>
34             /etc/sysconfig/modules
35           </p>
36         </li>
37         <li class="up">
38           <a accesskey="u" href="scripts.html" title=
39           "付録 D. ブートスクリプトと sysconfig スクリプト version-20120901">上に戻る</a>
40         </li>
41         <li class="home">
42           <a accesskey="h" href="../index.html" title=
43           "Linux From Scratch - Version 7.2">ホーム</a>
44         </li>
45       </ul>
46     </div>
47     <div class="wrap" lang="ja" xml:lang="ja">
48       <h1 class="sect1">
49         <a id="template" name="template"></a>D.21. /etc/rc.d/init.d/template
50       </h1>
51       <pre class="screen">
52 #!/bin/sh
53 ########################################################################
54 # Begin scriptname
55 #
56 # Description :
57 #
58 # Authors     :
59 #
60 # Version     : LFS x.x
61 #
62 # Notes       :
63 #
64 ########################################################################
65
66 ### BEGIN INIT INFO
67 # Provides:            template
68 # Required-Start:
69 # Should-Start:
70 # Required-Stop:
71 # Should-Stop:
72 # Default-Start:
73 # Default-Stop:
74 # Short-Description:
75 # Description:
76 # X-LFS-Provided-By:
77 ### END INIT INFO
78
79 . /lib/lsb/init-functions
80
81 case "${1}" in
82    start)
83       log_info_msg "Starting..."
84       start_daemon fully_qualified_path
85       ;;
86
87    stop)
88       log_info_msg "Stopping..."
89       killproc fully_qualified_path
90       ;;
91
92    restart)
93       ${0} stop
94       sleep 1
95       ${0} start
96       ;;
97
98    *)
99       echo "Usage: ${0} {start|stop|restart}"
100       exit 1
101       ;;
102 esac
103
104 exit 0
105
106 # End scriptname
107 </pre>
108     </div>
109     <div class="navfooter">
110       <ul>
111         <li class="prev">
112           <a accesskey="p" href="apds20.html" title=
113           "/etc/rc.d/init.d/halt">前のページ</a>
114           <p>
115             /etc/rc.d/init.d/halt
116           </p>
117         </li>
118         <li class="next">
119           <a accesskey="n" href="apds22.html" title=
120           "/etc/sysconfig/modules">次のページ</a>
121           <p>
122             /etc/sysconfig/modules
123           </p>
124         </li>
125         <li class="up">
126           <a accesskey="u" href="scripts.html" title=
127           "付録 D. ブートスクリプトと sysconfig スクリプト version-20120901">上に戻る</a>
128         </li>
129         <li class="home">
130           <a accesskey="h" href="../index.html" title=
131           "Linux From Scratch - Version 7.2">ホーム</a>
132         </li>
133       </ul>
134     </div>
135   </body>
136 </html>