Fixed start-onos.sh to not use classpath. It is causing Floodlight WebUI to not come up.
Also added a deldb option to start-onos.sh to remove to Berkley DB.
diff --git a/start-onos.sh b/start-onos.sh
index 9c1cf77..9f70527 100755
--- a/start-onos.sh
+++ b/start-onos.sh
@@ -40,7 +40,6 @@
<logger name="org" level="WARN"/>
<logger name="LogService" level="WARN"/> <!-- Restlet access logging -->
<logger name="net.floodlightcontroller.logging" level="WARN"/>
-<logger name="net.floodlightcontroller.linkdiscovery.internal" level="TRACE"/>
<root level="DEBUG">
<appender-ref ref="FILE" />
@@ -48,6 +47,7 @@
</configuration>
EOF_LOGBACK
+#<logger name="net.floodlightcontroller.linkdiscovery.internal" level="TRACE"/>
#<appender-ref ref="STDOUT" />
function lotate {
@@ -78,7 +78,7 @@
# Run floodlight
echo "Starting ONOS controller ..."
echo
- java ${JVM_OPTS} -Dlogback.configurationFile=${FL_LOGBACK} -Xbootclasspath/a:$CLASSPATH -jar ${FL_JAR} -cf ./onos.properties > /dev/null 2>&1 &
+ java ${JVM_OPTS} -Dlogback.configurationFile=${FL_LOGBACK} -jar ${FL_JAR} -cf ./onos.properties > /dev/null 2>&1 &
sudo tcpdump -n -i eth0 'tcp port 6633' -s0 -w ${PCAP_LOG} &
}
@@ -95,6 +95,14 @@
done
}
+function deldb {
+ # Delete the berkeley db database
+ if [ -d "/tmp/cassandra.titan" ]; then
+ rm -rf /tmp/cassandra.titan
+ mkdir /tmp/cassandra.titan
+ fi
+}
+
case "$1" in
start)
stop
@@ -103,6 +111,9 @@
stop)
stop
;;
+ deldb)
+ deldb
+ ;;
status)
n=`ps -edalf |grep java |grep logback.xml | wc -l`
echo "$n instance of onos running"