Skip to content
Snippets Groups Projects
Commit 11c73365 authored by jakubs's avatar jakubs
Browse files

SSDM-769 improve bisup script to work in cases when the file timestamp may be shifted

SVN: 32216
parent 8e2d35a3
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,11 @@ TIMEOUT=120
echo Starting openBIS...
echo $STARTING_MESSAGE >> $OPENBIS_LOG
# This variable suits as a workaround for cases where newly created files
# have non-zero age according to our age measuring function
fileAgeInSeconds $OPENBIS_LOG
ageOfNewFile=$?
$JETTY_HOME/bin/startup.sh
bisLogAgeInSeconds=5
......@@ -90,10 +95,11 @@ while [ "$bisLogAgeInSeconds" -lt $TIMEOUT ] || [ "$jettyLogAgeInSeconds" -lt $T
fi
fileAgeInSeconds $OPENBIS_LOG
bisLogAgeInSeconds=$?
bisLogAgeInSeconds=$(expr $? - $ageOfNewFile)
fileAgeInSeconds $JETTY_LOG
jettyLogAgeInSeconds=$?
jettyLogAgeInSeconds=$(expr $? - $ageOfNewFile)
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment