Update jetty.sh (#1890)

Real for loop. Easy to modify in case it's needed to wait longer for jetty to start (from mhow2)
This commit is contained in:
mhow2 2017-12-11 12:44:35 +01:00 committed by Greg Wilkins
parent f30c02fa45
commit a5db14d0d9
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ running()
started()
{
# wait for 60s to see "STARTED" in PID file, needs jetty-started.xml as argument
for T in 1 2 3 4 5 6 7 9 10 11 12 13 14 15
for (( T = 1; T <= 15; T++ ))
do
sleep 4
[ -z "$(grep STARTED $1 2>/dev/null)" ] || return 0