4 lxc: linux Container library
6 (C) Copyright IBM Corp. 2007, 2008
9 Daniel Lezcano <dlezcano at fr.ibm.com>
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
29 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
30 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
35 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
38 <refentrytitle>lxc-wait</refentrytitle>
39 <manvolnum>1</manvolnum>
43 <refname>lxc-wait</refname>
46 wait for a specific container state
52 <command>lxc-wait</command>
53 <arg choice="req">-n <replaceable>name</replaceable></arg>
54 <arg choice="req">-s <replaceable>states</replaceable></arg>
59 <title>Description</title>
61 <command>lxc-wait</command> waits for a specific container state
62 before exiting, this is useful for scripting.
67 <title>Options</title>
72 <option>-s <replaceable>states</replaceable></option>
76 Specify the container state(s) to wait for. The container
77 states can be ORed to specify several states.
84 <option>-t <replaceable>timeout</replaceable></option>
88 Wait timeout seconds for desired state to be reached.
100 <title>Examples</title>
103 <term>lxc-wait -n foo -s RUNNING</term>
106 exits when 'RUNNING' is reached.
112 <term>lxc-wait -n foo -s 'RUNNING|STOPPED'</term>
115 exits when 'RUNNING' or 'STOPPED' state is reached.
124 <title>Diagnostic</title>
129 <term>The container was not found</term>
132 The specified container was not created before with
133 the <command>lxc-create</command> command.
146 <title>Author</title>
147 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
152 <!-- Keep this comment at the end of the file
157 sgml-minimize-attributes:nil
158 sgml-always-quote-attributes:t
161 sgml-parent-document:nil
162 sgml-default-dtd-file:nil
163 sgml-exposed-tags:nil
164 sgml-local-catalogs:nil
165 sgml-local-ecat-files:nil