lxc-execute.sgml.in revision 6127da6b3f5815028bee187ac98840cd94313841
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo Sirainenlxc: linux Container library
5355df8b66da35698449a10c2c83633a64995298Timo Sirainen(C) Copyright IBM Corp. 2007, 2008
1b04762685272a53643ac2179939537a44c7c044Timo SirainenDaniel Lezcano <daniel.lezcano at free.fr>
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo SirainenThis library is free software; you can redistribute it and/or
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenmodify it under the terms of the GNU Lesser General Public
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo SirainenLicense as published by the Free Software Foundation; either
0aac625db5e6e179c8ee7420a12ab300d6b178edTimo Sirainenversion 2.1 of the License, or (at your option) any later version.
9e708a17f984ef7690ff2468ec19ad62c95b1ac2Timo SirainenThis library is distributed in the hope that it will be useful,
d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo Sirainenbut WITHOUT ANY WARRANTY; without even the implied warranty of
d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo SirainenMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9e708a17f984ef7690ff2468ec19ad62c95b1ac2Timo SirainenLesser General Public License for more details.
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo SirainenYou should have received a copy of the GNU Lesser General Public
9e708a17f984ef7690ff2468ec19ad62c95b1ac2Timo SirainenLicense along with this library; if not, write to the Free Software
87e74a3969c8380e53bebc7805dbec20fffeed49Timo SirainenFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo SirainenTranslated into Japanese
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo Sirainenby KATOH Yasufumi <karma at jazz.email.ne.jp>
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo Sirainen<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
548f87789cf9865572b7b86f7be5a9bbfa132f3fTimo Sirainen<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
bbe42963032af89fac1318844da08c742525cc87Timo Sirainen <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
<command>lxc-execute</command> は特定の <replaceable>command</replaceable> を,<replaceable>name</replaceable> で指定したコンテナ内で実行します.
このコマンドは,lxc-create コマンドであらかじめ定義した設定,もしくはパラメータとして与えた設定ファイルを元にコンテナをセットアップします.もし設定が定義されていない場合,デフォルトの隔離を使用します.
<command>lxc-execute</command> は,<command>lxc-init</command> を間にはさんで,コンテナ内で特定のコマンドを実行します.lxc-init は,指定されたコマンドが実行された後は,そのコマンドの終了と,そのコマンドから生成された全てのプロセスの終了を待ちます (これにより,コンテナ内でデーモンのサポートが可能になります).言いかえると,コンテナ内では <command>lxc-init</command> が pid 1 となり,アプリケーションの最初のプロセスの pid が 2 となります.
前述の <command>lxc-init</command> は,受け取ったシグナルを開始したコマンドに送るように設計されています.なので,<command>lxc-kill</command> (1) が送ったシグナルは,ユーザが指定したコマンド (コンテナ内の pid 2 のプロセス) が受けとります.
設定変数 <replaceable>KEY</replaceable> の値を <replaceable>VAL</replaceable> に設定します.この設定は <replaceable>config_file</replaceable> で設定された値を上書きします.