Skip to content

Commit

Permalink
Update start script (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Feb 15, 2024
1 parent 8e2feff commit 117c191
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/monit_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ case $ACTION in
kill $(cat target/universal/stage/RUNNING_PID)
rm target/universal/stage/RUNNING_PID
fi
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -DpreferIPv4Stack" sbt clean "start $PORT" & > monit_start.log
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -DpreferIPv4Stack"
sbt clean
sbt stage
./target/universal/stage/bin/lobid-resources-web -Dhttp.port=$PORT -no-version-check > monit_start.log 2>&1 &
if [ -n $DO_ETL_UPDATE -a $(tail -n100 logs/etl.log |grep -c "Finishing indexing of ES index 'resources-alma-fix'") -eq 0 ]; then
echo "Automatical updates-ETL triggered and last entries were not ok, thus starting ETL. Sleep 100s before starting ETL ..." >> monit_start.log
sleep 100
Expand Down

0 comments on commit 117c191

Please sign in to comment.