31 lines
684 B
Text
31 lines
684 B
Text
|
#!/bin/sh
|
||
|
#
|
||
|
# $FreeBSD$
|
||
|
|
||
|
DBXML_HOME=%%DBXML_HOME%%
|
||
|
|
||
|
# Read in the list of dbXML Jars to include in the BOOTPATH
|
||
|
BOOTPATH=""
|
||
|
JARS=`ls -1 $DBXML_HOME/java/lib/*.jar`
|
||
|
for jar in $JARS
|
||
|
do
|
||
|
BOOTPATH=$jar:$BOOTPATH ;
|
||
|
done
|
||
|
|
||
|
# Read in the extra VM paramters for starting the program
|
||
|
VMPROPS=""
|
||
|
if test -f $DBXML_HOME/config/vm.cfg; then
|
||
|
PROPS="`cat $DBXML_HOME/config/vm.cfg`"
|
||
|
for prop in $PROPS
|
||
|
do
|
||
|
VMPROPS="$VMPROPS $prop"
|
||
|
done
|
||
|
fi
|
||
|
|
||
|
cd $DBXML_HOME
|
||
|
|
||
|
%%LOCALBASE%%/bin/java -Xbootclasspath/p:"$BOOTPATH" -classpath "$CLASSPATH" -Xms64m -Xmx384m -Ddbxml.home="$DBXML_HOME" $VMPROPS com.dbxml.db.server.Server $* &
|
||
|
JAVA_PID=$!
|
||
|
|
||
|
echo ${JAVA_PID} > $DBXML_HOME/config/dbxml.pid
|