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 |
| 6 | cassandra stop |
| 7 | zk stop |
| 8 | |
| 9 | zk start |
| 10 | cassandra start |
| 11 | cassandra cleandb |
Masayoshi Kobayashi | bd3d00e | 2013-04-03 22:59:57 +0000 | [diff] [blame] | 12 | db_status=`cassandra checkdb |grep OK | wc -l` |
| 13 | if [ $db_status != 1 ];then |
| 14 | echo $db_status |
| 15 | echo "Cassandra DB was screwed up. Need DB key drop" |
| 16 | exit |
| 17 | fi |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 18 | onos start |
Masayoshi Kobayashi | e4a551d | 2013-04-07 04:56:09 +0000 | [diff] [blame] | 19 | switch local |
| 20 | #dsh -g $basename 'cd ONOS; ./ctrl-local.sh' |