Skip to content

Commit a1ff896

Browse files
committed
[__502] patch for consistency in starting
1 parent 8cc6ee4 commit a1ff896

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

irods/test/harness/start_postgresql_and_irods.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ if ! id -u irods >/dev/null 2>&1 ; then
1313
IRODS_VSN=$(jq -r '.irods_version' $VERSION_file) /install.sh 5
1414
fi
1515
su - irods -c '~/irodsctl restart'
16-
pgrep irodsServer
17-
STATUS=$?
16+
IRODS_WAIT_SEC=20
17+
x=$IRODS_WAIT_SEC
18+
SLEEPTIME=""
19+
while [ $((x--)) -gt 0 ]; do
20+
sleep $((SLEEPTIME+0))
21+
pgrep irodsServer
22+
STATUS=$?
23+
[ $STATUS -eq 0 ] && break
24+
SLEEPTIME=1
25+
done
1826
echo "($STATUS)" >/tmp/irods_status
1927
[ $STATUS -eq 0 ] || exit 125
2028
tail -f /dev/null

0 commit comments

Comments
 (0)