File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,13 @@ function launching_kvrocks {
114114 echo -e $GREEN " \t* Launching KVROCKS servers" $DEFAULT
115115
116116 sleep 0.1
117- screen -S " KVROCKS_AIL" -X screen -t " 6383" bash -c ' cd ' ${AIL_HOME} ' ; ./kvrocks/build/kvrocks -c ' $conf_dir ' /6383.conf ; read x'
117+ if [ -f " ./kvrocks/build/kvrocks" ]; then
118+ screen -S " KVROCKS_AIL" -X screen -t " 6383" bash -c ' cd ' ${AIL_HOME} ' ; ./kvrocks/build/kvrocks -c ' $conf_dir ' /6383.conf ; read x'
119+ elif [ -f " /usr/bin/kvrocks" ]; then
120+ screen -S " KVROCKS_AIL" -X screen -t " 6383" bash -c ' cd ' ${AIL_HOME} ' ; kvrocks -c ' $conf_dir ' /6383.conf ; read x'
121+ else
122+ echo -e $RED " \t* KVROCKS is not installed." $DEFAULT
123+ fi
118124}
119125
120126function launching_logs {
You can’t perform that action at this time.
0 commit comments