diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2011-06-07 05:39:08 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2011-06-07 05:39:08 +0000 |
commit | bf72e81a1f4fe8fce80d897ea1624594b460988c (patch) | |
tree | 5eacd0ff22e7285947526078b24a14dea3c27054 /databases/dbXML/files/dbxmlctl.in | |
parent | Conditionally remove lib/security. (diff) |
. Update to 2.0.
. Modernise the port.
PR: 157634
Approved by: Richard Stockley <rws@procopia.com> (MAINTAINER)
Notes
Notes:
svn path=/head/; revision=275171
Diffstat (limited to 'databases/dbXML/files/dbxmlctl.in')
-rw-r--r-- | databases/dbXML/files/dbxmlctl.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/dbXML/files/dbxmlctl.in b/databases/dbXML/files/dbxmlctl.in new file mode 100644 index 000000000000..e9d8fc4b6eb5 --- /dev/null +++ b/databases/dbXML/files/dbxmlctl.in @@ -0,0 +1,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 |