From 9c8b18da3596cabf5358c56744030b57b7df0e85 Mon Sep 17 00:00:00 2001 From: tomas Date: Thu, 9 Jan 2014 11:31:20 +0100 Subject: [PATCH] Fix run.sh to work from any directory. Add cd command just before executing java process to work around the issue that osgi container does not correctly start from any folder except where run.sh is located. Change-Id: I42562cbb88922cefe2347b8e0d293067fbd10d3d Signed-off-by: tomas --- .../distribution/opendaylight/src/main/resources/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opendaylight/distribution/opendaylight/src/main/resources/run.sh b/opendaylight/distribution/opendaylight/src/main/resources/run.sh index 3a29f63b81..ffe53afd4d 100755 --- a/opendaylight/distribution/opendaylight/src/main/resources/run.sh +++ b/opendaylight/distribution/opendaylight/src/main/resources/run.sh @@ -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}"` -- 2.36.6