| 1 |
<!-- SPDX-License-Identifier: LGPL-2.1+ --> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC @docdtd@ [ |
| 4 |
|
| 5 |
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> |
| 6 |
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> |
| 7 |
]> |
| 8 |
|
| 9 |
<refentry> |
| 10 |
|
| 11 |
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>lxc-stop</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-stop</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
stop the application running inside a container |
| 24 |
--> |
| 25 |
컨테이너 종료 |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-stop</command> |
| 32 |
<arg choice="req">-n <replaceable>name</replaceable></arg> |
| 33 |
<arg choice="opt">-W</arg> |
| 34 |
<arg choice="opt">-r</arg> |
| 35 |
<arg choice="opt">-t <replaceable>timeout</replaceable></arg> |
| 36 |
<arg choice="opt">-k</arg> |
| 37 |
<arg choice="opt">--nokill</arg> |
| 38 |
<arg choice="opt">--nolock</arg> |
| 39 |
</cmdsynopsis> |
| 40 |
</refsynopsisdiv> |
| 41 |
|
| 42 |
<refsect1> |
| 43 |
<title><!-- Description -->설명</title> |
| 44 |
|
| 45 |
<para> |
| 46 |
<!-- |
| 47 |
<command>lxc-stop</command> reboots, cleanly shuts down, or kills |
| 48 |
all the processes inside the container. By default, it will |
| 49 |
request a clean shutdown of the container by sending |
| 50 |
<command>lxc.signal.halt</command> (defaults to SIGPWR) to |
| 51 |
the container's init process, waiting up to 60 seconds for the container |
| 52 |
to exit, and then returning. If the container fails to cleanly exit in |
| 53 |
60 seconds, it will be sent the <command>lxc.signal.stop</command> |
| 54 |
(defaults to SIGKILL) to force it to shut down. A request to reboot will |
| 55 |
send the <command>lxc.signal.reboot</command> (defaults to SIGINT) to the |
| 56 |
container's init process. |
| 57 |
--> |
| 58 |
<command>lxc-stop</command> 는 재뷰탕, 종료, 또는 컨테이너 내의 모든 프로세스를 강제종료 시킨다. 기본 동작은 컨테이너에게 <command>lxc.signal.halt</command> 시그널(기본값은 SIGPWR)을 컨테이너 init 프로세스에게 날려, 컨테이너가 종료되게 요청하는 것이다. 60초 동안 컨테이너가 종료되는 것을 기다리고 리턴된다. |
| 59 |
만약 컨테이너가 60초안에 종료되지 않는다면 <command>lxc.signal.stop</command> 시그널(기본값은 SIGKILL)을 날려 강제로 종료시킨다. 재부팅 요청시에는 <command>lxc.signal.reboot</command> 시그널(기본값은 SIGINT)를 컨테이너 init 프로세스에게 날린다. |
| 60 |
</para> |
| 61 |
|
| 62 |
<para> |
| 63 |
<!-- |
| 64 |
The <optional>-W</optional>, <optional>-r</optional>, |
| 65 |
<optional>-k</optional> and <optional>\-\-nokill</optional> |
| 66 |
options specify the action to perform. |
| 67 |
<optional>-W</optional> indicates that after performing the specified |
| 68 |
action, <command>lxc-stop</command> should immediately exit, while |
| 69 |
<optional>-t TIMEOUT</optional> specifies the maximum amount of time |
| 70 |
to wait for the container to complete the shutdown or reboot. |
| 71 |
--> |
| 72 |
<optional>-W</optional>, <optional>-r</optional>, <optional>-s</optional>, <optional>-k</optional>, <optional>--nokill</optional> 옵션은 어떤 동작을 수행할지 지정한다. |
| 73 |
<optional>-W</optional>는 <command>lxc-stop</command>가 동작 수행후 즉각적으로 종료되게 지정한다. <optional>-t TIMEOUT</optional>는 동작이 완료되기까지 기다릴 최대 시간을 지정한다. |
| 74 |
</para> |
| 75 |
|
| 76 |
</refsect1> |
| 77 |
|
| 78 |
<refsect1> |
| 79 |
<title><!-- Options -->옵션</title> |
| 80 |
<variablelist> |
| 81 |
|
| 82 |
<varlistentry> |
| 83 |
<term> |
| 84 |
<option>-r,--reboot </option> |
| 85 |
</term> |
| 86 |
<listitem> |
| 87 |
<para> |
| 88 |
<!-- |
| 89 |
Request a reboot of the container. |
| 90 |
--> |
| 91 |
컨테이너 재부팅을 요청한다. |
| 92 |
</para> |
| 93 |
</listitem> |
| 94 |
</varlistentry> |
| 95 |
|
| 96 |
<varlistentry> |
| 97 |
<term> |
| 98 |
<option>-k,--kill </option> |
| 99 |
</term> |
| 100 |
<listitem> |
| 101 |
<para> |
| 102 |
<!-- |
| 103 |
Rather than requesting a clean shutdown of the container, explicitly |
| 104 |
kill all tasks in the container. This is the legacy |
| 105 |
<command>lxc-stop</command> behavior. |
| 106 |
--> |
| 107 |
컨테이너가 깨끗이 종료되는 것 대신 명시적으로 컨테이너 내의 모든 작업들을 강제종료 시킨다. 이것은 이전 <command>lxc-stop</command>의 동작이다. |
| 108 |
</para> |
| 109 |
</listitem> |
| 110 |
</varlistentry> |
| 111 |
|
| 112 |
<varlistentry> |
| 113 |
<term> |
| 114 |
<option>--nokill</option> |
| 115 |
</term> |
| 116 |
<listitem> |
| 117 |
<para> |
| 118 |
<!-- |
| 119 |
Only request a clean shutdown, do not kill the container tasks if the |
| 120 |
clean shutdown fails. |
| 121 |
--> |
| 122 |
깨끗이 종료되도록 요청한다. 만약 종료가 실패하더라도 컨테이너 작업을 강제로 종료시키지 않는다. |
| 123 |
</para> |
| 124 |
</listitem> |
| 125 |
</varlistentry> |
| 126 |
|
| 127 |
<varlistentry> |
| 128 |
<term> |
| 129 |
<option>--nolock </option> |
| 130 |
</term> |
| 131 |
<listitem> |
| 132 |
<para> |
| 133 |
<!-- |
| 134 |
This option avoids the use of any of the API lxc locking, and should |
| 135 |
only be used if <command>lxc-stop</command> is hanging due to a bad |
| 136 |
system state. |
| 137 |
--> |
| 138 |
이 옵션은 lxc API에서 락킹을 사용하지 않는다. <command>lxc-stop</command>이 잘못된 시스템 상태로 인해, 응답이 없게 되었을 경우에만 사용된다. |
| 139 |
</para> |
| 140 |
</listitem> |
| 141 |
</varlistentry> |
| 142 |
|
| 143 |
<varlistentry> |
| 144 |
<term> |
| 145 |
<option>-W,--nowait </option> |
| 146 |
</term> |
| 147 |
<listitem> |
| 148 |
<para> |
| 149 |
<!-- |
| 150 |
Simply perform the requestion action (reboot, shutdown, or hard |
| 151 |
kill) and exit. |
| 152 |
--> |
| 153 |
동작 수행(재부팅, 종료, 강제종료)을 요청하고 바로 죵료한다. |
| 154 |
</para> |
| 155 |
</listitem> |
| 156 |
</varlistentry> |
| 157 |
|
| 158 |
<varlistentry> |
| 159 |
<term> |
| 160 |
<option>-t,--timeout <replaceable>TIMEOUT</replaceable></option> |
| 161 |
</term> |
| 162 |
<listitem> |
| 163 |
<para> |
| 164 |
<!-- |
| 165 |
Wait TIMEOUT seconds before hard-stopping the container. |
| 166 |
--> |
| 167 |
컨테이너를 강제종료 하기 전에 TIMEOUT 초 만큼 기다린다. |
| 168 |
</para> |
| 169 |
</listitem> |
| 170 |
</varlistentry> |
| 171 |
|
| 172 |
</variablelist> |
| 173 |
</refsect1> |
| 174 |
|
| 175 |
<refsect1> |
| 176 |
<title><!-- Exit value -->종료</title> |
| 177 |
|
| 178 |
<variablelist> |
| 179 |
|
| 180 |
<varlistentry> |
| 181 |
<term>0</term> |
| 182 |
<listitem> |
| 183 |
<para> |
| 184 |
<!-- |
| 185 |
The container was successfully stopped. |
| 186 |
--> |
| 187 |
컨테이너가 성공적으로 종료됬다. |
| 188 |
</para> |
| 189 |
</listitem> |
| 190 |
</varlistentry> |
| 191 |
|
| 192 |
<varlistentry> |
| 193 |
<term>1</term> |
| 194 |
<listitem> |
| 195 |
<para> |
| 196 |
<!-- |
| 197 |
An error occurred while stopping the container. |
| 198 |
--> |
| 199 |
컨테이너를 종료하던 도중 오류가 발생하였다. |
| 200 |
</para> |
| 201 |
</listitem> |
| 202 |
</varlistentry> |
| 203 |
|
| 204 |
<varlistentry> |
| 205 |
<term>2</term> |
| 206 |
<listitem> |
| 207 |
<para> |
| 208 |
<!-- |
| 209 |
The specified container exists but was not running. |
| 210 |
--> |
| 211 |
지정한 컨테이너가 있지만 실행되 있지는 않다. |
| 212 |
</para> |
| 213 |
</listitem> |
| 214 |
</varlistentry> |
| 215 |
|
| 216 |
</variablelist> |
| 217 |
|
| 218 |
</refsect1> |
| 219 |
<refsect1> |
| 220 |
<title><!-- Diagnostic -->진단</title> |
| 221 |
|
| 222 |
<variablelist> |
| 223 |
|
| 224 |
<varlistentry> |
| 225 |
<term>The container was not found</term> |
| 226 |
<listitem> |
| 227 |
<para> |
| 228 |
<!-- |
| 229 |
The specified container was not created before with |
| 230 |
the <command>lxc-create</command> command. |
| 231 |
--> |
| 232 |
지정한 컨테이너가 <command>lxc-create</command>로 생성된 적이 없다. |
| 233 |
컨테이너가 존재하지 않는다. |
| 234 |
</para> |
| 235 |
</listitem> |
| 236 |
</varlistentry> |
| 237 |
|
| 238 |
</variablelist> |
| 239 |
|
| 240 |
</refsect1> |
| 241 |
|
| 242 |
&seealso; |
| 243 |
|
| 244 |
</refentry> |
| 245 |
|
| 246 |
<!-- Keep this comment at the end of the file |
| 247 |
Local variables: |
| 248 |
mode: sgml |
| 249 |
sgml-omittag:t |
| 250 |
sgml-shorttag:t |
| 251 |
sgml-minimize-attributes:nil |
| 252 |
sgml-always-quote-attributes:t |
| 253 |
sgml-indent-step:2 |
| 254 |
sgml-indent-data:t |
| 255 |
sgml-parent-document:nil |
| 256 |
sgml-default-dtd-file:nil |
| 257 |
sgml-exposed-tags:nil |
| 258 |
sgml-local-catalogs:nil |
| 259 |
sgml-local-ecat-files:nil |
| 260 |
End: |
| 261 |
--> |