summaryrefslogtreecommitdiff
path: root/databases/dbXML/files/dbxmlctl.in
blob: e9d8fc4b6eb54a6c5bcbac2b2f5c648c562f3773 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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