有些 vda 子命令会立即返回,但会在后台启动操作,也称为作业。
通过 job-wait 子命令,您可以等待特定作业完成,然后再执行下一个命令。
# sbin/vda job-wait --help Wait until the job ends Usage: vda job-wait [-t <timeout> | --timeout=<timeout>] <job> -?, --help Print this help list Options: -t <timeout>, --timeout=<timeout> Timeout in seconds to wait Operand: *<job> The id of the job '*' denotes mandatory parameters.