Skip to content
Snippets Groups Projects
Commit 825a5f0e authored by felmer's avatar felmer
Browse files

LMS-2329 improved installation script: It also scans jetty.out

SVN: 22520
parent 0d779984
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
STARTING_MESSAGE="STARTING SERVER"
STARTED_MESSAGE="SERVER STARTED"
JETTY_STARTED_MESSAGE="Successfully started component "
ERROR_MESSAGE="ERROR"
BASE=`dirname "$0"`
......@@ -12,6 +13,7 @@ fi
JETTY_HOME=$BASE/../servers/openBIS-server/jetty/
OPENBIS_LOG=$JETTY_HOME/logs/openbis_log.txt
JETTY_LOG=$JETTY_HOME/logs/jetty.out
echo Starting openBIS...
echo $STARTING_MESSAGE >> $OPENBIS_LOG
......@@ -24,8 +26,10 @@ for i in {1..120}; do
started=`egrep -R "($STARTING_MESSAGE|$STARTED_MESSAGE)" $OPENBIS_LOG | tail -1 | grep "$STARTED_MESSAGE"`
if [ -n "$started" ]; then
echo "Done."
exit 0;
started=`egrep -R "$JETTY_STARTED_MESSAGE" $JETTY_LOG | tail -1 | grep "$JETTY_STARTED_MESSAGE"`
if [ -n "$started" ]; then
echo "Done."
exit 0;
fi
error=`egrep -R "($STARTING_MESSAGE|$ERROR_MESSAGE)" $OPENBIS_LOG | tail -1 | grep "$ERROR_MESSAGE"`
......@@ -34,6 +38,12 @@ for i in {1..120}; do
exit 1;
fi
error=`egrep -R "$ERROR_MESSAGE" $JETTY_LOG | tail -1 | grep "$ERROR_MESSAGE"`
if [ -n "$error" ]; then
echo "Failed: $error"
exit 1;
fi
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