tom | 4d0c663 | 2014-09-15 23:27:01 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 2 | # ----------------------------------------------------------------------------- |
tom | 4d0c663 | 2014-09-15 23:27:01 -0700 | [diff] [blame] | 3 | # Starts ONOS Apache Karaf container |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 4 | # ----------------------------------------------------------------------------- |
tom | 4d0c663 | 2014-09-15 23:27:01 -0700 | [diff] [blame] | 5 | |
Brian O'Connor | 9362d88 | 2015-03-10 11:56:35 -0700 | [diff] [blame] | 6 | # uncomment the following line for performance testing |
| 7 | #export JAVA_OPTS="${JAVA_OPTS:--Xms8G -Xmx8G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps}" |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 8 | |
Thomas Vachuska | 045c01d | 2014-12-04 00:18:06 -0800 | [diff] [blame] | 9 | ONOS_HOME=/opt/onos |
| 10 | |
| 11 | [ -d $ONOS_HOME ] && cd $ONOS_HOME || ONOS_HOME=$(dirname $0)/.. |
| 12 | ${ONOS_HOME}/apache-karaf-$KARAF_VERSION/bin/karaf "$@" |