mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Don't complain so much about LXC failing to stop until we are at retry=3
This commit is contained in:
parent
2ae3626050
commit
0e62de7b6b
1 changed files with 4 additions and 1 deletions
|
@ -144,7 +144,10 @@ LXC_STOP () {
|
|||
then
|
||||
break
|
||||
fi
|
||||
if [[ ${retry_stop_lxc} -ge 3 ]]
|
||||
then
|
||||
log_warning "Failed to stop LXC (status=$status) ? Retrying in 10 sec ..."
|
||||
fi
|
||||
retry_stop_lxc="$(($retry_stop_lxc+1))"
|
||||
sleep 10
|
||||
timeout 30 lxc stop --timeout 15 $container_to_stop 2>/dev/null
|
||||
|
|
Loading…
Add table
Reference in a new issue