added an option to pass JVM params (like -verbose:gc) to run.sh 58/10758/3
authorDavid Goldberg <david.goldberg@contextream.com>
Thu, 4 Sep 2014 10:37:06 +0000 (13:37 +0300)
committerDavid Goldberg <david.goldberg@contextream.com>
Thu, 4 Sep 2014 13:56:37 +0000 (13:56 +0000)
Change-Id: I35a786e50e7604fd4c8abb9a958d550a88d315c1
Signed-off-by: David Goldberg <david.goldberg@contextream.com>
opendaylight/distribution/opendaylight/src/main/resources/run.sh

index 13be233..b032469 100755 (executable)
@@ -112,6 +112,7 @@ while true ; do
         -Xmx*) jvmMaxMemory="$1"; shift;;
         -D*) extraJVMOpts="${extraJVMOpts} $1"; shift;;
         -X*) extraJVMOpts="${extraJVMOpts} $1"; shift;;
+        -J*) extraJVMOpts="${extraJVMOpts} -$(echo "$1" | cut -d'J' -f2)"; shift;;
         -agentpath:*) agentPath="$1"; shift;;
         "") break ;;
         *) echo "Unknown option $1"; unknown_option=1; break ;;

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.