lxc-wait

Langue: en

Version: 29 April 2009 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

lxc-wait - wait for a specific container state

SYNOPSIS

lxc-wait -n name -s states

DESCRIPTION

lxc-wait waits for a specific container state before exiting, this is useful for scripting.

OPTIONS

-n name
Specify the container name to be waited.
-s states
Specify the container state(s) to wait for. The container states can be ORed to specify several states.

EXAMPLES

lxc-wait -n foo -s RUNNING
exits when 'RUNNING' is reached.
lxc-wait -n 'RUNNING|STOPPED'
exits when 'RUNNING' or 'STOPPED' state is reached.

DIAGNOSTIC

The container was not found
The specified container was not created before with the lxc-create command.

SEE ALSO

lxc-info(1),

AUTHOR

Daniel Lezcano <daniel.lezcano@free.fr>