]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-wait.sgml.in
change man pages to use a seealso file for references
[mirror_lxc.git] / doc / lxc-wait.sgml.in
CommitLineData
d823d5b9 1
2<!--
3
4lxc: linux Container library
5
6(C) Copyright IBM Corp. 2007, 2008
7
8Authors:
9Daniel Lezcano <dlezcano at fr.ibm.com>
10
11This library is free software; you can redistribute it and/or
12modify it under the terms of the GNU Lesser General Public
13License as published by the Free Software Foundation; either
14version 2.1 of the License, or (at your option) any later version.
15
16This library is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19Lesser General Public License for more details.
20
21You should have received a copy of the GNU Lesser General Public
22License along with this library; if not, write to the Free Software
23Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
25-->
26
99e4008c
MN
27<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
28
29<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
30]>
d823d5b9 31
32<refentry>
33
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35
36 <refmeta>
37 <refentrytitle>lxc-wait</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-wait</refname>
43
44 <refpurpose>
45 wait for a specific container state
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <cmdsynopsis>
51 <command>lxc-wait <replaceable>-n name</replaceable>
52 <replaceable>-s states</replaceable>
53 </command>
54 </cmdsynopsis>
55 </refsynopsisdiv>
56
57 <refsect1>
58 <title>Description</title>
59 <para>
60 <command>lxc-wait</command> waits for a specific container state
61 before exiting, this is useful for scripting.
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>Options</title>
67 <variablelist>
68
69 <varlistentry>
70 <term>
71 <option>-n <replaceable>name</replaceable></option>
72 </term>
73 <listitem>
74 <para>
75 Specify the container name to be waited.
76 </para>
77 </listitem>
78 </varlistentry>
79
80 <varlistentry>
81 <term>
82 <option>-s <replaceable>states</replaceable></option>
83 </term>
84 <listitem>
85 <para>
86 Specify the container state(s) to wait for. The container
87 states can be ORed to specify several states.
88 </para>
89 </listitem>
90 </varlistentry>
91
92 </variablelist>
93
94 </refsect1>
95
96 <refsect1>
97 <title>Examples</title>
98 <variablelist>
99 <varlistentry>
100 <term>lxc-wait -n foo -s RUNNING</term>
101 <listitem>
102 <para>
103 exits when 'RUNNING' is reached.
104 </para>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry>
109 <term>lxc-wait -n 'RUNNING|STOPPED'</term>
110 <listitem>
111 <para>
112 exits when 'RUNNING' or 'STOPPED' state is reached.
113 </para>
114 </listitem>
115 </varlistentry>
116
117 </variablelist>
118 </refsect1>
119
120 <refsect1>
121 <title>Diagnostic</title>
122
123 <variablelist>
124
125 <varlistentry>
126 <term>The container was not found</term>
127 <listitem>
128 <para>
129 The specified container was not created before with
130 the <command>lxc-create</command> command.
131 </para>
132 </listitem>
133 </varlistentry>
134
135
136 </variablelist>
137
138 </refsect1>
139
99e4008c 140 &seealso;
d823d5b9 141
142 <refsect1>
143 <title>Author</title>
144 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
145 </refsect1>
146
147</refentry>
148
149<!-- Keep this comment at the end of the file
150Local variables:
151mode: sgml
152sgml-omittag:t
153sgml-shorttag:t
154sgml-minimize-attributes:nil
155sgml-always-quote-attributes:t
156sgml-indent-step:2
157sgml-indent-data:t
158sgml-parent-document:nil
159sgml-default-dtd-file:nil
160sgml-exposed-tags:nil
161sgml-local-catalogs:nil
162sgml-local-ecat-files:nil
163End:
164-->