Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 1 | #! /bin/bash |
Masayoshi Kobayashi | 0ab03da | 2013-03-26 00:43:02 +0000 | [diff] [blame] | 2 | . $HOME/bin/func.sh |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 3 | |
| 4 | onos stop |
| 5 | cassandra cleandb |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 6 | |
Masayoshi Kobayashi | bd3d00e | 2013-04-03 22:59:57 +0000 | [diff] [blame] | 7 | db_status=`cassandra checkdb |grep OK | wc -l` |
| 8 | if [ $db_status != 1 ];then |
| 9 | echo $db_status |
| 10 | echo "Cassandra DB was screwed up. Need DB key drop" |
| 11 | exit |
| 12 | fi |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 13 | onos start |
Masayoshi Kobayashi | e4a551d | 2013-04-07 04:56:09 +0000 | [diff] [blame] | 14 | switch local |
| 15 | #dsh -g $basename 'cd ONOS; ./ctrl-local.sh' |