Changed startup scripts to Check if Cassandra is NOT running on local berkeley db
diff --git a/start-onos.sh b/start-onos.sh
index 19834af..0ef6ecd 100755
--- a/start-onos.sh
+++ b/start-onos.sh
@@ -103,10 +103,22 @@
mkdir /tmp/cassandra.titan
fi
}
+function check_db {
+ if [ -d "/tmp/cassandra.titan" ]; then
+ echo "Cassandra is running on local berkely db. Exitting"
+ exit
+ fi
+ n=`ps -edalf |grep java |grep apache-cassandra | wc -l`
+ if [ x$n != "x1" ]; then
+ echo "Cassandra is not running. Exitting"
+ exit
+ fi
+}
case "$1" in
start)
stop
+ check_db
start
;;
stop)