1lxc-wait(1) lxc-wait(1)
2
3
4
6 lxc-wait - wait for a specific container state
7
9 lxc-wait {-n name} {-s states}
10
12 lxc-wait waits for a specific container state before exiting, this is
13 useful for scripting.
14
16 -s, --state states
17 Specify the container state(s) to wait for. The container states
18 can be ORed to specify several states.
19
20 -t, --timeout timeout
21 Wait timeout seconds for desired state to be reached.
22
24 These options are common to most of lxc commands.
25
26 -?, -h, --help
27 Print a longer usage message than normal.
28
29 --usage
30 Give the usage message
31
32 -q, --quiet
33 mute on
34
35 -P, --lxcpath=PATH
36 Use an alternate container path. The default is /var/lib/lxc.
37
38 -o, --logfile=FILE
39 Output to an alternate log FILE. The default is no log.
40
41 -l, --logpriority=LEVEL
42 Set log priority to LEVEL. The default log priority is ERROR.
43 Possible values are : FATAL, ALERT, CRIT, WARN, ERROR, NOTICE,
44 INFO, DEBUG, TRACE.
45
46 Note that this option is setting the priority of the events log
47 in the alternate log file. It do not have effect on the ERROR
48 events log on stderr.
49
50 -n, --name=NAME
51 Use container identifier NAME. The container identifier format
52 is an alphanumeric string.
53
54 --rcfile=FILE
55 Specify the configuration file to configure the virtualization
56 and isolation functionalities for the container.
57
58 This configuration file if present will be used even if there is
59 already a configuration file present in the previously created
60 container (via lxc-create).
61
62 --version
63 Show the version number.
64
66 lxc-wait -n foo -s RUNNING
67 exits when 'RUNNING' is reached.
68
69 lxc-wait -n foo -s 'RUNNING|STOPPED'
70 exits when 'RUNNING' or 'STOPPED' state is reached.
71
73 The container was not found
74 The specified container was not created before with the lxc-cre‐
75 ate command.
76
78 lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-
79 stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1),
80 lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1),
81 lxc-attach(1), lxc.conf(5)
82
84 Daniel Lezcano <daniel.lezcano@free.fr>
85
86
87
88 2022-05-26 lxc-wait(1)