mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Merge pull request #1002 from BoiseComputer/patch-2
Delay until instance starts.
This commit is contained in:
commit
5936d27820
@ -3434,6 +3434,20 @@ main(){
|
|||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
doStart "${options[@]}"
|
doStart "${options[@]}"
|
||||||
|
if [[ ${#instances[@]} > 1 ]]; then
|
||||||
|
COUNTER=0
|
||||||
|
if [ -z "$defaultinstance_max" ]; then
|
||||||
|
defaultinstance_max=0
|
||||||
|
fi
|
||||||
|
while [ $COUNTER -lt $defaultinstance_max ]; do
|
||||||
|
echo -ne "$NORMAL Waiting up to $RED$((defaultinstance_max-COUNTER))$NORMAL seconds before starting next instance."\\r
|
||||||
|
let COUNTER=COUNTER+1
|
||||||
|
if isTheServerOnline ;then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1s
|
||||||
|
done
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
doStop shutdown "${options[@]}"
|
doStop shutdown "${options[@]}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user