# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. #/usr/lib/jvm/java-6-sun/jre/bin/ if [ -n "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | grep -v grep`" ]; then echo "The gen_indexes process is already running!" echo "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | grep -v grep`" exit 1 fi if [ -n "`ps auxw | grep batch_server_upload.xml | grep IndexBatchCreator | grep -v grep`" ]; then echo "The upload process is already running!" echo "`ps auxw | grep batch_server_upload.xml | grep IndexBatchCreator | grep -v grep`" exit 1 fi if [ -z "$JAVA_HOME" ] ; then export JAVA_HOME=/usr/lib/jvm/java-6-sun/ fi #"$JAVA_HOME/bin/java" -version "$JAVA_HOME/bin/java" -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx768M -cp "OsmAndMapCreator/OsmAndMapCreator.jar:OsmAndMapCreator/lib/*.jar" net.osmand.data.index.IndexBatchCreator ./batch_server_upload.xml $@ #send mail ./upload_finished_mail.sh # update the indexes wget "http://download.osmand.net/indexes.php?update=true" -O - > /dev/null