diff options
| author | John Audia <graysky@archlinux.us> | 2021-09-19 14:35:09 -0400 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2021-09-25 12:37:06 -0700 |
| commit | 7984d2d74a2fd83f036310888ad7486bff655c5a (patch) | |
| tree | 2da03cc2e6f02e9bcf1832046e910a807a63fd16 /lang/python/python3 | |
| parent | 7259eea63fcbeb0955c8f390562c88590a3e1ae7 (diff) | |
lxc-auto: step by 1 sec up to $max_timeout
If the user defines a $max_timeout of 30, the service will wait 30 seconds
before it considers lxc-stop complete even though lxc-stop might actually
finish much sooner. This introduces an unneeded delay.
This commit changes the behavior to check once per second to see when lxc-stop
actually stops doing so up to $max_timeout. It also slightly simplifies the
code with logic to append the -t $max_timeout to the script.
Signed-off-by: John Audia <graysky@archlinux.us>
Diffstat (limited to 'lang/python/python3')
0 files changed, 0 insertions, 0 deletions
