lxc-wait(1)
π lxc-wait(1) β wait for a specific container state π
πΈ NAME πΈ
lxc-wait β wait for a specific container state. π
β¨ SYNOPSIS β¨
lxc-wait {-n name} {-s states}
π¦ DESCRIPTION π¦
okay so lxc-wait literally waits for a specific container state before it exits β and bestie, that is highkey useful for scripting. Itβs giving βhold the group chat until the vibe check passesβ energy, no cap. π
β¨
π OPTIONS π
-s,--state statesβ specify the container state(s) to wait for. The container states can be ORed to specify several states. π-t,--timeout timeoutβ waittimeoutseconds for the desired state to be reached. β³
π COMMON OPTIONS π
These options are common to most of lxc commands β iykyk. π
-?,-h,--helpβ print a longer usage message than normal. π--usageβ give the usage message. π-q,--quietβ mute on. π«’-P,--lxcpath=PATHβ use an alternate container path. The default is/var/lib/lxc. π-o,--logfile=FILEβ output to an alternate logFILE. The default is no log. π-l,--logpriority=LEVELβ set log priority toLEVEL. The default log priority isERROR. Possible values are:FATAL,ALERT,CRIT,WARN,ERROR,NOTICE,INFO,DEBUG,TRACE. π₯ Note that this option is setting the priority of the events log in the alternate log file. It does not affect theERRORevents log on stderr. β οΈ-n,--name=NAMEβ use container identifierNAME. The container identifier format is an alphanumeric string. π·οΈ--rcfile=FILEβ specify the configuration file to configure the virtualization and isolation functionalities for the container. π§ This configuration file, if present, will be used even if there is already a configuration file present in the previously created container (vialxc-create). π--versionβ show the version number. π
π EXAMPLES π
lxc-wait -n foo -s RUNNING
exits when 'RUNNING' is reached. β
lxc-wait -n foo -s 'RUNNING|STOPPED'
exits when 'RUNNING' or 'STOPPED' state is reached. β
π DIAGNOSTIC π
The container was not foundβ the specified container was not created before with thelxc-createcommand. π«
π¦ SEE ALSO π¦
lxc(7)lxc-create(1)lxc-copy(1)lxc-destroy(1)lxc-start(1)lxc-stop(1)lxc-execute(1)lxc-console(1)lxc-monitor(1)lxc-wait(1)lxc-cgroup(1)lxc-ls(1)lxc-info(1)lxc-freeze(1)lxc-unfreeze(1)lxc-attach(1)lxc.conf(5)
Signing off from the lxc-wait(1) manual page, dated 2026-05-01. π
β¨
π¦ where this page comes from
- alpine 3.24: lxc-doc 7.0.0-r0 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms