2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
if [ $JAVA_HOME ]; then
|
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
echo JAVA_HOME is not set.
|
|
|
|
echo You may not be able to start the server
|
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
fi
|
|
|
|
|
2014-09-17 21:16:14 +07:00
|
|
|
if [ "$1" = "debug" ]; then
|
2014-09-04 05:46:25 +07:00
|
|
|
DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4554,server=y,suspend=n"
|
|
|
|
fi
|
|
|
|
|
2010-11-04 02:46:38 +07:00
|
|
|
echo ===================================
|
2012-06-06 21:13:34 +07:00
|
|
|
echo Starting iDempiere Server
|
2010-11-04 02:46:38 +07:00
|
|
|
echo ===================================
|
|
|
|
|
2014-01-08 20:41:43 +07:00
|
|
|
unset DISPLAY
|
2014-01-08 20:40:54 +07:00
|
|
|
BASE=`dirname $( readlink -f idempiere-server.sh )`
|
2014-09-04 05:46:25 +07:00
|
|
|
$JAVA ${DEBUG} -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XX:MaxPermSize=192m -jar $BASE/plugins/org.eclipse.equinox.launcher_1.*.jar -console 12612 -application org.adempiere.server.application
|