We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc6ee4 commit a1ff896Copy full SHA for a1ff896
1 file changed
irods/test/harness/start_postgresql_and_irods.sh
@@ -13,8 +13,16 @@ if ! id -u irods >/dev/null 2>&1 ; then
13
IRODS_VSN=$(jq -r '.irods_version' $VERSION_file) /install.sh 5
14
fi
15
su - irods -c '~/irodsctl restart'
16
-pgrep irodsServer
17
-STATUS=$?
+IRODS_WAIT_SEC=20
+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
26
echo "($STATUS)" >/tmp/irods_status
27
[ $STATUS -eq 0 ] || exit 125
28
tail -f /dev/null
0 commit comments