#!/bin/sh

source $AUTOMED/bin/common_functions

#remove persistent db lock file
lckFile=`ls $HOME/.automed/dbEnv/overlay/*.lck`

if [ "$lckFile" ]
then
  echo "Removing exclusive lock files on persistent DB..."
  rm $lckFile
fi 

prog_dir=`dirname $0`
etc_dir="$prog_dir/../etc"
ext_lib_dir="$prog_dir/../lib"
lib_dir=$AUTOMED/java/distjar
ext_jars="$AUTOMED/java/classes:$AUTOMED/java/classes/examples"
get_list_jars $ext_lib_dir
get_list_jars $lib_dir
set -x 

echo "Starting log server console..."

java -cp $ext_jars uk.ac.ic.doc.automed.editor.LogConsole &

sleep 3 

java -cp $ext_jars rodex.DONWithSchema -n 5 \
-f etc/DONScenario1.properties \
-d "9.8 20.9 21.1"

