mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
More flexible wait time for node to reboot
This commit is contained in:
parent
0ce4f4559c
commit
56d07f6de8
@ -109,7 +109,10 @@ check:rc==0
|
||||
|
||||
# Check node can be rebooted from disk
|
||||
cmd:xdsh $$CN shutdown -r now
|
||||
cmd:sleep 420
|
||||
|
||||
# Wait for node to reboot (10sec x 60)
|
||||
cmd:a=0;while ! `xdsh $$CN -t 5 uptime 2>&1 | grep up >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done
|
||||
|
||||
cmd:xdsh $$CN uptime
|
||||
check:rc==0
|
||||
check:output=~up
|
||||
|
Loading…
x
Reference in New Issue
Block a user