Revert commit bedd505.
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / run.sh
index b34e8f773fbb324990bb19c8428fdde49d696189..ffe53afd4d5393de8e065a1708caf41893e3e726 100755 (executable)
@@ -164,6 +164,8 @@ FWCLASSPATH=${FWCLASSPATH},file:${basedir}/lib/org.eclipse.virgo.kernel.equinox.
 CLASSPATH=${CLASSPATH}:${basedir}/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar
 FWCLASSPATH=${FWCLASSPATH},file:${basedir}/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar
 
+cd $basedir
+
 if [ "${stopdaemon}" -eq 1 ]; then
     if [ -e "${pidfile}" ]; then
         daemonpid=`cat "${pidfile}"`
@@ -207,6 +209,7 @@ if [ "${startdaemon}" -eq 1 ]; then
         -Dosgi.configuration.area=${datadir}/configuration \
         -Dosgi.frameworkClassPath=${FWCLASSPATH} \
         -Dosgi.framework=file:${basedir}/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar \
+        -Djava.awt.headless=true \
         -classpath ${CLASSPATH} \
         org.eclipse.equinox.launcher.Main \
         -console ${daemonport} \
@@ -224,6 +227,7 @@ elif [ "${consolestart}" -eq 1 ]; then
         -Dosgi.configuration.area=${datadir}/configuration \
         -Dosgi.frameworkClassPath=${FWCLASSPATH} \
         -Dosgi.framework=file:${basedir}/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar \
+        -Djava.awt.headless=true \
         -classpath ${CLASSPATH} \
         org.eclipse.equinox.launcher.Main \
         -console \